示例#1
0
        public void AddProjectFileToSolutionFile(string solutionFilePath, string projectFilePath)
        {
            var command = DotnetCommandLine.Start()
                          .Sln(solutionFilePath)
                          .Add(projectFilePath)
            ;

            this.Execute(command);
        }
示例#2
0
        public void Publish(string projectFilePath, string outputDirectoryPath, string buildConfigurationName, string frameworkName)
        {
            var command = DotnetCommandLine.Start()
                          .Publish(projectFilePath)
                          .SetBuildConfigurationName(buildConfigurationName)
                          .SetFramework(frameworkName)
                          .SetOutputDirectoryPath(outputDirectoryPath)
            ;

            this.Execute(command);
        }
示例#3
0
        public void CreateNewProjectFile(string projectTemplateShortName, string projectDirectoryPath, string projectName)
        {
            var command = DotnetCommandLine.Start()
                          .New()
                          .CSharpProject(projectTemplateShortName)
                          .SetProjectName(projectName)
                          .SetOutputDirectory(projectDirectoryPath)
            ;

            this.Execute(command);
        }
示例#4
0
        public void CreateNewSolutionFile(string solutionDirectoryPath, string solutionName)
        {
            var command = DotnetCommandLine.Start()
                          .New()
                          .Solution2019() // Use the 2019 solution.
                          .SetOutputDirectoryPath(solutionDirectoryPath)
                          .SetName(solutionName)
            ;

            this.Execute(command);
        }