Ejemplo n.º 1
0
		private static string GetCodeDirectoryOfProject(string slnFilePath,
			string projectNameInSolution)
		{
			var solutionLoader = new SolutionFileLoader(slnFilePath);
			ProjectEntry searchedProject = solutionLoader.GetCSharpProject(projectNameInSolution);
			string solutionDirectory = Path.GetDirectoryName(slnFilePath);
			string relativeProjectDirectory = Path.GetDirectoryName(searchedProject.FilePath);
			return Path.Combine(solutionDirectory, relativeProjectDirectory);
		}
Ejemplo n.º 2
0
		private void AddCodeProjectsOfSolutionToAvailableProjects(string solutionFilePath)
		{
			var solutionLoader = new SolutionFileLoader(solutionFilePath);
			var availableProjectsInSolution = solutionLoader.GetCSharpProjects();
			foreach (ProjectEntry projectEntry in availableProjectsInSolution)
			{
				string contentProject = GetContentProject(projectEntry);
				if (!String.IsNullOrEmpty(contentProject))
					if (!IsProjectAlreadyAddedToDictionary(projectEntry))
						availableCodeProjectsWithContentProjects.Add(projectEntry, contentProject);
			}
		}