Skip to content

Commit d1e3ccb

Browse files
committed
Merge pull request #327 from zooba/issue-188
#188 Can't create web role or worker role
2 parents 9baa835 + 990c1f8 commit d1e3ccb

File tree

5 files changed

+28
-15
lines changed

5 files changed

+28
-15
lines changed

Python/Product/Django/ProvideLanguageTemplatesAttribute.cs

-12
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@
1717
using Microsoft.VisualStudio.Shell;
1818

1919
namespace Microsoft.PythonTools.Django {
20-
21-
/// <include file='doc\ProvideEditorExtensionAttribute.uex' path='docs/doc[@for="ProvideEditorExtensionAttribute"]' />
22-
/// <devdoc>
23-
/// This attribute associates a file extension to a given editor factory.
24-
/// The editor factory may be specified as either a GUID or a type and
25-
/// is placed on a package.
26-
///
27-
/// This differs from the normal one in that more than one extension can be supplied and
28-
/// a linked editor GUID can be supplied.
29-
/// </devdoc>
3020
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
3121
internal sealed class ProvideLanguageTemplatesAttribute : RegistrationAttribute {
3222
private readonly string _projectFactory, _languageName, _package, _languageGuid, _description, _templateGroup,
@@ -45,8 +35,6 @@ public ProvideLanguageTemplatesAttribute(string projectFactory, string languageN
4535
_webProjectGuid = webProjectGuid;
4636
}
4737

48-
49-
/// <include file='doc\ProvideEditorExtensionAttribute.uex' path='docs/doc[@for="Register"]' />
5038
/// <devdoc>
5139
/// Called to register this attribute with the given context. The context
5240
/// contains the location where the registration inforomation should be placed.

Python/Product/PythonTools/PythonTools/Project/ImportWizard/ProjectCustomizations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Dictionary<string, ProjectPropertyGroupElement> groups
214214
globals = project.AddPropertyGroup();
215215
}
216216

217-
AddOrSetProperty(globals, "ProjectTypeGuids", "{c85cbf2e-4147-4e9d-87e0-9a2fbf407f6e};{888888A0-9F3D-457C-B088-3A5042F75D52}");
217+
AddOrSetProperty(globals, "ProjectTypeGuids", "{2b557614-1a2b-4903-b9df-ed20d7b63f3a};{888888A0-9F3D-457C-B088-3A5042F75D52}");
218218
}
219219
}
220220
}

Python/Product/Uwp/Guids.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace Microsoft.PythonTools.Uwp {
2020
static class GuidList {
2121
public const string guidUwpPkgString = "0a078d3c-15a9-47f5-8418-9ee5db43993d";
22-
public const string guidUwpFactoryString = "c85cbf2e-4147-4e9d-87e0-9a2fbf407f6e";
22+
public const string guidUwpFactoryString = "2b557614-1a2b-4903-b9df-ed20d7b63f3a";
2323
public const string guidUwpPropertyPageString = "700c8e09-f81c-4fb8-a386-508fb48c372d";
2424
public static readonly Guid guidOfficeSharePointCmdSet = new Guid("d26c976c-8ee8-4ec4-8746-f5f7702a17c5");
2525
}

Python/Product/Uwp/Templates/Projects/BackgroundService/PythonBackgroundService.pyproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<SearchPath />
2121
<PackageCertificateKeyFile>$projectname$_TemporaryKey.pfx</PackageCertificateKeyFile>
2222
<DefaultLanguage>$currentuiculturename$</DefaultLanguage>
23-
<ProjectTypeGuids>{c85cbf2e-4147-4e9d-87e0-9a2fbf407f6e};{888888A0-9F3D-457C-B088-3A5042F75D52}</ProjectTypeGuids>
23+
<ProjectTypeGuids>{2b557614-1a2b-4903-b9df-ed20d7b63f3a};{888888A0-9F3D-457C-B088-3A5042F75D52}</ProjectTypeGuids>
2424
<InterpreterId>{86767848-40B4-4007-8BCC-A3835EDF0E69}</InterpreterId>
2525
<InterpreterVersion>3.5</InterpreterVersion>
2626
<RemoteDebugEnabled>true</RemoteDebugEnabled>

Python/Tests/Core.UI/BasicProjectTests.cs

+25
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,31 @@ public static void DoDeployment(TestContext context) {
6060
PythonTestData.Deploy();
6161
}
6262

63+
[TestMethod, Priority(0), TestCategory("Core")]
64+
[HostType("VSTestHost")]
65+
public void TemplateDirectories() {
66+
var languageName = PythonVisualStudioApp.TemplateLanguageName;
67+
using (var app = new VisualStudioApp()) {
68+
var sln = (Solution2)app.Dte.Solution;
69+
70+
foreach (var templateName in new[] {
71+
#if DEV14_OR_LATER
72+
"BackgroundService.zip",
73+
#endif
74+
PythonVisualStudioApp.PythonApplicationTemplate,
75+
PythonVisualStudioApp.BottleWebProjectTemplate,
76+
PythonVisualStudioApp.DjangoWebProjectTemplate
77+
}) {
78+
var templatePath = sln.GetProjectTemplate(templateName, languageName);
79+
Assert.IsTrue(
80+
File.Exists(templatePath) || Directory.Exists(templatePath),
81+
string.Format("Cannot find template '{0}' for language '{1}'", templateName, languageName)
82+
);
83+
Console.WriteLine("Found {0} at {1}", templateName, templatePath);
84+
}
85+
}
86+
}
87+
6388
[TestMethod, Priority(0), TestCategory("Core")]
6489
[HostType("VSTestHost")]
6590
public void UserProjectFile() {

0 commit comments

Comments
 (0)