Example #1
0
 internal static void UnloadProject(MSBuild.Evaluation.ProjectCollection projectCollection, MSBuild.Evaluation.Project project)
 {
     lock (SolutionProjectCollectionLock)
     {
         projectCollection.UnloadProject(project);
     }
 }
 internal static ProjectInstance LoadProjectInstance(MSBuild.Evaluation.ProjectCollection projectCollection, ProjectRootElement rootElement, IDictionary <string, string> globalProps)
 {
     lock (SolutionProjectCollectionLock) {
         string toolsVersion = rootElement.ToolsVersion;
         if (string.IsNullOrEmpty(toolsVersion))
         {
             toolsVersion = projectCollection.DefaultToolsVersion;
         }
         return(new ProjectInstance(rootElement, globalProps, toolsVersion, projectCollection));
     }
 }