void UpdateProperties(GlobalAndInternalProject msbuildProjects) { var propertiesMerger = new MSBuildProjectPropertiesMerger( msbuildProjects.GlobalMSBuildProject, msbuildProjects.DotNetProject); propertiesMerger.Merge(); if (propertiesMerger.Result.AnyPropertiesChanged()) { LogProjectPropertiesMergeResult(msbuildProjects.DotNetProject, propertiesMerger.Result); } }
void UpdateImports(GlobalAndInternalProject msbuildProjects) { if (!msbuildProjects.HasGlobalMSBuildProjectImportsChanged()) { return; } LogProjectImportsChanged(msbuildProjects.SharpDevelopMSBuildProject); var importsMerger = new MSBuildProjectImportsMerger( msbuildProjects.GlobalMSBuildProject, msbuildProjects.SharpDevelopMSBuildProject); importsMerger.Merge(); LogProjectImportMergeResult(msbuildProjects.SharpDevelopMSBuildProject, importsMerger.Result); }
void UpdateImports(GlobalAndInternalProject msbuildProjects) { if (!msbuildProjects.HasGlobalMSBuildProjectImportsChanged()) { return; } LogProjectImportsChanged(msbuildProjects.DotNetProject); var importsMerger = new MSBuildProjectImportsMerger( msbuildProjects.GlobalMSBuildProject, msbuildProjects.DotNetProject); GlobalMSBuildProjectCollectionMSBuildExtension.ImportsMerger = importsMerger; msbuildProjects.DotNetProject.Save(); LogProjectImportMergeResult(msbuildProjects.DotNetProject, importsMerger.Result); }
void UpdateProject(GlobalAndInternalProject msbuildProjects) { UpdateImports(msbuildProjects); UpdateProperties(msbuildProjects); }
void UpdateProperties(GlobalAndInternalProject msbuildProjects) { var propertiesMerger = new MSBuildProjectPropertiesMerger( msbuildProjects.GlobalMSBuildProject, msbuildProjects.SharpDevelopMSBuildProject); propertiesMerger.Merge(); if (propertiesMerger.Result.AnyPropertiesChanged()) { LogProjectPropertiesMergeResult(msbuildProjects.SharpDevelopMSBuildProject, propertiesMerger.Result); } }
void UpdateImports (GlobalAndInternalProject msbuildProjects) { if (!msbuildProjects.HasGlobalMSBuildProjectImportsChanged ()) { return; } LogProjectImportsChanged (msbuildProjects.DotNetProject); var importsMerger = new MSBuildProjectImportsMerger ( msbuildProjects.GlobalMSBuildProject, msbuildProjects.DotNetProject); GlobalMSBuildProjectCollectionMSBuildExtension.ImportsMerger = importsMerger; msbuildProjects.DotNetProject.Save (); LogProjectImportMergeResult (msbuildProjects.DotNetProject, importsMerger.Result); }