|
@@ -61,7 +61,7 @@ public static void AddOption(TemplateGeneratorParameters parameters, string opti |
|
|
return parameters.Tags.TryGetValue(OptionsKey, out options) ? options : new Dictionary<string, object>(); |
|
|
} |
|
|
|
|
|
public static void UpdatePackagePlatforms(PackageTemplateGeneratorParameters packageParameters, ICollection<SelectedSolutionPlatform> platforms, DisplayOrientation orientation, bool forcePlatformRegeneration) |
|
|
public static IEnumerable<SolutionProject> UpdatePackagePlatforms(PackageTemplateGeneratorParameters packageParameters, ICollection<SelectedSolutionPlatform> platforms, DisplayOrientation orientation, bool forcePlatformRegeneration) |
|
|
{ |
|
|
if (platforms == null) throw new ArgumentNullException(nameof(platforms)); |
|
|
var logger = packageParameters.Logger; |
|
@@ -143,6 +143,8 @@ public static void UpdatePackagePlatforms(PackageTemplateGeneratorParameters pac |
|
|
package.Session.Projects.Add(newExeProject); |
|
|
|
|
|
package.Session.IsDirty = true; |
|
|
|
|
|
yield return newExeProject; |
|
|
} |
|
|
|
|
|
foreach (var project in projectsToRemove) |
|
@@ -224,6 +226,8 @@ public static SolutionProject GenerateTemplate(TemplateGeneratorParameters param |
|
|
projectTemplate.Generate(outputDirectoryPath, projectName, projectGuid, parameters.Logger, options, generatedFiles); |
|
|
|
|
|
var project = new SolutionProject(package, projectGuid, projectFullPath); |
|
|
project.Type = projectType; |
|
|
project.Platform = platformType; |
|
|
|
|
|
return project; |
|
|
} |
|
|
0 comments on commit
56b6774