Ejemplo n.º 1
0
        public void ProjectTest()
        {
            var solution = ProjectModelTasks.ParseSolution(SolutionFile);

            solution.Projects.First().GetMSBuildProject();
        }
Ejemplo n.º 2
0
        public void SolutionGetProjectsTest()
        {
            var solution = ProjectModelTasks.ParseSolution(SolutionFile);

            solution.GetProjects("*.Tests").Should().HaveCount(2);
        }
Ejemplo n.º 3
0
        /*
         * Solution ProtobufCSDLLSolutionDynamic
         * {
         *  get
         *  {
         *      string rootAbsolutePath = ((AbsolutePath) (RootDirectory /
         *                                                 "ExampleCustomProtoBufStructure/ExampleCustomProtoBufStructure.csproj"
         *          ));
         *      rootAbsolutePath = PathConstruction.Combine(NukeBuild.RootDirectory, "ExampleCustomProtoBufStructure/ExampleCustomProtoBufStructure.csproj");
         *      //var solution = new Solution();
         *      //solution.Path = new DirectoryInfo(rootAbsolutePath);
         *      return ProjectModelTasks.ParseSolution(rootAbsolutePath);
         *  }
         * }
         */

        public static Solution SolutionDynamic(AbsolutePath pathToProject)
        {
            return(ProjectModelTasks.ParseSolution(pathToProject));
        }