示例#1
0
 protected override void ExecuteTask()
 {
     SolutionBuilder solutionBuilder = new SolutionBuilder(new VisualStudioSolution(Solution, dotNetVersion ?? "v2.0.50727"));
     NantProject project = new NantProject(projectName);
     Project.Log(Level.Info, "Doing MSBuild for project " + project);
     solutionBuilder.MSBuild(project, Rebuild, WorkingDirectory);
     Project.Log(Level.Info, "Finished MSBuild for project " + project);
 }
 protected override void ExecuteTask()
 {
     SolutionBuilder solutionBuilder = new SolutionBuilder(new VisualStudioSolution(Solution, dotNetVersion ?? "v2.0.50727"));
     NantProject project = new NantProject(projectName);
     Project.Log(Level.Info, "Removing Test classes from project " + project + " and nunit dll reference");
     solutionBuilder.BuildWithoutTests(project);
     Project.Log(Level.Info, "Done Test classes from project " + project + " and nunit dll reference");
 }
示例#3
0
 public virtual void BuildWithoutTests(NantProject nantProject, TestIdentifier testIdentifier, string workingDirectory, bool useMSBuild, PreCompile preCompile)
 {
     VisualStudioSolution testLessSolution = solution.TestLessCopy();
     testLessSolution.ForEach(delegate(VisualStudioProject project)
                       {
                           if (testIdentifier.IsTestProject(project))
                           {
                               return;
                           }
                           project.RemoveTests(testIdentifier);
                       });
     testLessSolution.ForEach(obj => preCompile(obj));
     if (useMSBuild)
         testLessSolution.MSBuild(nantProject, true, workingDirectory);
     else
         testLessSolution.Compile(nantProject);
 }
示例#4
0
 public FileSystemCommand(NantProject nantProject)
 {
     this.nantProject = nantProject;
 }
示例#5
0
 public IIS(NantProject nantProject)
 {
     this.nantProject = nantProject;
 }
示例#6
0
 public SqlServer(NantProject nantProject, string connectionString, string sqlServerInstallation)
 {
     this.nantProject = nantProject;
     this.connectionString = connectionString;
     this.sqlServerInstallation = sqlServerInstallation;
 }
示例#7
0
 public SqlServer(NantProject nantProject, string connectionString)
     : this(nantProject, connectionString, @"C:\Program Files\Microsoft SQL Server")
 {
 }
示例#8
0
 public virtual void MSBuild(NantProject nantProject, bool rebuild, string workingDirectory)
 {
     solution.MSBuild(nantProject, rebuild, workingDirectory);
 }
示例#9
0
 public virtual void BuildWithoutTests(NantProject nantProject, TestIdentifier testIdentifier, PreCompile preCompile)
 {
     BuildWithoutTests(nantProject, testIdentifier, ".", true, preCompile);
 }
示例#10
0
 /// <summary>
 /// Would use StandardTestIdentifier
 /// </summary>
 public virtual void BuildWithoutTests(NantProject nantProject, PreCompile preCompile)
 {
     BuildWithoutTests(nantProject, new StandardTestIdentifier(), ".", true, preCompile);
 }
示例#11
0
 /// <summary>
 /// Would use StandardTestIdentifier
 /// </summary>
 public virtual void BuildWithoutTests(NantProject nantProject)
 {
     BuildWithoutTests(nantProject, delegate {});
 }
示例#12
0
 public virtual void BuildWithoutTests(NantProject nantProject, TestIdentifier testIdentifier, string workingDirectory, bool useMSBuild)
 {
     BuildWithoutTests(nantProject, testIdentifier, workingDirectory, useMSBuild, delegate {});
 }