Class used to emit the set of per-platform project files for a service. Existing project files are retained, only missing files are generated.
Ejemplo n.º 1
0
 /// <summary>
 /// Generates any missing project files for a service
 /// </summary>
 void ExecuteProjectFileGenerators()
 {
     var creator = new ProjectFileCreator();
     creator.Execute(ServiceFilesRoot, this.Configuration, this.ProjectFileConfigurations);
     foreach (var newProjectKey in creator.CreatedProjectFiles.Keys)
     {
         NewlyCreatedProjectFiles.Add(newProjectKey, creator.CreatedProjectFiles[newProjectKey]);
     }
 }
Ejemplo n.º 2
0
 public static void GenerateCoreProjects(GenerationManifest generationManifest,
     GeneratorOptions options)
 {
     Console.WriteLine("Updating Core project files.");
     string coreFilesRoot = Path.Combine(options.SdkRootFolder, "src", "core");
     var creator = new ProjectFileCreator();
     creator.ExecuteCore(coreFilesRoot, generationManifest.ProjectFileConfigurations);
     foreach (var newProjectKey in creator.CreatedProjectFiles.Keys)
     {
         NewlyCreatedProjectFiles.Add(newProjectKey, creator.CreatedProjectFiles[newProjectKey]);
     }
 }