void UpdateProperties(GlobalAndInternalProject msbuildProjects)
        {
            var propertiesMerger = new MSBuildProjectPropertiesMerger(
                msbuildProjects.GlobalMSBuildProject,
                msbuildProjects.DotNetProject);

            propertiesMerger.Merge();

            if (propertiesMerger.Result.AnyPropertiesChanged())
            {
                LogProjectPropertiesMergeResult(msbuildProjects.DotNetProject, propertiesMerger.Result);
            }
        }
コード例 #2
0
		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);
		}
コード例 #3
0
        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);
 }
コード例 #6
0
		void UpdateProperties(GlobalAndInternalProject msbuildProjects)
		{
			var propertiesMerger = new MSBuildProjectPropertiesMerger(
				msbuildProjects.GlobalMSBuildProject,
				msbuildProjects.SharpDevelopMSBuildProject);
			
			propertiesMerger.Merge();
			
			if (propertiesMerger.Result.AnyPropertiesChanged())
			{
				LogProjectPropertiesMergeResult(msbuildProjects.SharpDevelopMSBuildProject, propertiesMerger.Result);
			}
		}
コード例 #7
0
 void UpdateProject(GlobalAndInternalProject msbuildProjects)
 {
     UpdateImports(msbuildProjects);
     UpdateProperties(msbuildProjects);
 }
		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);
		}