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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 158k
  • Answers 158k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's very simple. First, just create a <div> with your… May 12, 2026 at 11:15 am
  • Editorial Team
    Editorial Team added an answer Here's a one-line solution using reshape and permute: C =… May 12, 2026 at 11:15 am
  • Editorial Team
    Editorial Team added an answer Well, i finally found an interesting way to do. First,… May 12, 2026 at 11:15 am

Related Questions

I have CruiseControl.NET setup with SVN source control. I have all my projects working
I have a NSIS installer that we previously built using nAnt scripts that copy
I've currently got CC.Net setup for doing builds and it's awesome. But now I
I am working with couple of friends on an ASP.NET MVC website. The project

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.