public ProjectItemRelationship(ProjectItem parentProjectItem, SD.ProjectItem msbuildProjectItem)
		{
			this.ParentProjectItem = parentProjectItem;
			this.MSBuildProjectItem = msbuildProjectItem;
			this.Project = parentProjectItem.ContainingProject;
			GetRelationship();
		}
 internal override bool IsChildItem(SD.ProjectItem msbuildProjectItem)
 {
     string directory = Path.GetDirectoryName(msbuildProjectItem.Include);
     if (directory == relativePath) {
         return true;
     }
     return false;
 }
		ProjectItem ConvertToProjectItem(SD.ProjectItem item)
		{
			var fileItem = item as FileProjectItem;
			if ((fileItem != null) && !fileItem.IsDependentUponAnotherFile())  {
				return ConvertFileToProjectItem(fileItem);
			}
			return null;
		}
		SolutionSectionItem GetMatchingSolutionItem(SD.SolutionSection section, string name)
		{
			string matchedName = section.Keys.SingleOrDefault(key => IsMatchIgnoringCase(key, name));
			if (matchedName != null) {
				return new SolutionSectionItem(section, matchedName);
			}
			return null;
		}
		void RemoveItemFromSolution(SD.SolutionItem item)
		{
			SD.ProjectSection section = GetExtensibilityGlobalsSection();
			section.Items.Remove(item);
			nonPersistedSolutionItems.Add(item);
			solution.Save();
		}
Esempio n. 6
0
		internal virtual ProjectItemRelationship GetRelationship(SD.ProjectItem msbuildProjectItem)
		{
			return new ProjectItemRelationship(this, msbuildProjectItem);
		}
Esempio n. 7
0
		internal virtual bool IsChildItem(SD.ProjectItem msbuildProjectItem)
		{
			string directory = Path.GetDirectoryName(msbuildProjectItem.Include);
			return IsMatchByName(directory);
		}
Esempio n. 8
0
		public void SetStartupProject(SD.IProject project)
		{
			MSBuildSolution.Preferences.StartupProject = project;
		}
Esempio n. 9
0
		ProjectItem GetChildProjectItem(SD.ProjectItem msbuildProjectItem)
		{
			ProjectItemRelationship relationship = ProjectItem.GetRelationship(msbuildProjectItem);
			return relationship.GetChild();
		}
Esempio n. 10
0
		public Solution(SD.Solution solution)
		{
			this.solution = solution;
		}
Esempio n. 11
0
		internal bool IsSameSolution(SD.Solution solution)
		{
			throw new NotImplementedException();
		}
Esempio n. 12
0
		void AddProjectItemToMSBuildProject(SD.ProjectItem projectItem)
		{
			projectService.AddProjectItem(MSBuildProject, projectItem);
		}