public override void SaveProject (IProgressMonitor monitor, SolutionEntityItem item, MSBuildProject project) { try { MSBuildProjectImportsMerger merger = ImportsMerger; if (merger != null) { merger.Merge (project); } } finally { ImportsMerger = null; } }
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.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 CreateProjectImportsMerger() { projectService = MockRepository.GenerateStub<IPackageManagementProjectService>(); importsMerger = new MSBuildProjectImportsMerger(msbuildProject, sharpDevelopProject, projectService); }
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); }