Beispiel #1
0
 /// <summary>
 /// Creates a new solution file using the MSBuild format.
 /// </summary>
 /// <param name = "name">The name of the solution to create.</param>
 public static Solution CreateSolution(string name)
 {
     var solution = MSBuildProjectFactory.CreateSolution(name);
     solution.InitializeEventHandlers();
     solution.GiveUnsavedData();
     solution.Settings = new SolutionSettings();
     return solution;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new .NET MSBuild project with the default values.
 /// </summary>
 public NetProject(string name, ProjectDescriptor projectDescriptor)
     : base(MSBuildProjectFactory.CreateNetProject(projectDescriptor.MSBuildTargetsFile))
 {
     Name = RootNamespace = name;
 }
        public void GetTargetPathForSourceFiles_Darwin(string sourcePath, string projectDirectory, string expectedResult)
        {
            var result = MSBuildProjectFactory.GetTargetPathForSourceFile(sourcePath, projectDirectory);

            Assert.Equal(expectedResult, result);
        }