Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 40187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:59:04+00:00 2026-05-10T14:59:04+00:00

We have CC.NET setup on our ASP.NET app. When we build the project, the

  • 0

We have CC.NET setup on our ASP.NET app. When we build the project, the ASP.NET app is pre-compiled and copied to a network share, from which a server runs the application.

The server is a bit different from development box’es, and the next server in our staging environment differs even more. The difference is specific config files and so on – so I want to exclude some files – or delete them before the pre-compiled app is copied to a network share.

My config file looks like this:

    <project name='Assembly.Web.project'>     <triggers>         <intervalTrigger seconds='3600' />     </triggers>     <sourcecontrol type='svn'>         <trunkUrl>svn://svn-server/MyApp/Web/Trunk</trunkUrl>         <workingDirectory>C:\build-server\Assembly\Web\TEST-HL</workingDirectory>     <executable>C:\Program Files (x86)\SVN 1.5 bin\svn.exe</executable>     <username>uid</username>     <password>pwd</password>     </sourcecontrol>     <tasks>         <msbuild>           <executable>C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe</executable>           <workingDirectory>C:\build-server\Assembly\Web\TEST-HL</workingDirectory>           <projectFile>C:\build-server\Assembly\Web\TEST-HL\Web\Web.sln</projectFile>           <buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs>           <targets>Build</targets>           <timeout>900</timeout>           <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>         </msbuild>     </tasks>     <publishers>         <buildpublisher>              <sourceDir>C:\build-server\Assembly\Web\PrecompiledWeb</sourceDir>              <publishDir>\\test-web01\Web</publishDir>              <useLabelSubDirectory>false</useLabelSubDirectory>              <alwaysPublish>false</alwaysPublish>         </buildpublisher>                </publishers> </project> 

As you can see, I use a buildPublisher to copy the pre-compiled files to the network share. What I want to do here, is either 1) delete certain files before they are copied or 2) replace those files after they have been copied.

I DO NOT want to have some app running watching specific files for change, and then after that replace the files with other ones. I want something to be either done by CC.NET, or triggered by CC.NET.

Can you launch a .bat file with CC.NET?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:59:04+00:00Added an answer on May 10, 2026 at 2:59 pm

    You have to use NAnt for those kind of stuff. Here is the Task Reference of Nant..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a really simple ASP.NET web application and a web setup project that
I have created a setup project in VS2008. My WinForms app uses .NET 2.0,
In our ASP.NET MVC project we have a Strings.resx file and the accompanying autogenerated
I have just set up cruise control.net on our build server, and I am
The .NET Setup project seems to have a lot of options, but I don't
I have a few users setup in the web.config of an asp.net site to
In my Asp.net MVC app, I have two methods on a controller, one for
We have a huge ASP.NET web application which needs to be deployed to LIVE
I have Forms authentication setup for an ASP.NET 4.0 application on http://example.com - we'll
I have a regular .NET Windows Forms treeview control. The nodes are setup like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.