public void Merge()
        {
            foreach (ProjectPropertyElement property in msbuildProject.Xml.Properties)
            {
                UpdateProperty(property);
            }

            projectService.Save(sharpDevelopProject);
        }
Example #2
0
        void RemoveMissingImports()
        {
            var importsToRemove = new List <ProjectImportElement>();

            foreach (ProjectImportElement import in sharpDevelopProject.MSBuildProjectFile.Imports)
            {
                if (msbuildProject.Xml.FindImport(import.Project) == null)
                {
                    importsToRemove.Add(import);
                }
            }

            foreach (ProjectImportElement importToRemove in importsToRemove)
            {
                sharpDevelopProject.MSBuildProjectFile.RemoveChild(importToRemove);
            }

            result.AddProjectImportsRemoved(importsToRemove);

            projectService.Save(sharpDevelopProject);
        }
Example #3
0
 public virtual void Save()
 {
     projectService.Save(MSBuildProject);
 }
 void AddReferenceToProject(ReferenceProjectItem assemblyReference)
 {
     projectService.AddProjectItem(project, assemblyReference);
     projectService.Save(project);
     LogAddedReferenceToProject(assemblyReference);
 }
Example #5
0
 internal void Save()
 {
     projectService.Save(solution);
 }
Example #6
0
 void AddReferenceToProject(ProjectReference assemblyReference)
 {
     project.References.Add(assemblyReference);
     projectService.Save(project);
     LogAddedReferenceToProject(assemblyReference);
 }