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 7001893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:51:38+00:00 2026-05-27T20:51:38+00:00

I’ve read a few good posts on automating build processes, however, what I’m interested

  • 0

I’ve read a few good posts on automating build processes, however, what I’m interested in is not just a build process, but publishing.

I have several websites and services that use a base model. When I change that model (which won’t happen very often), all sites/services will have to be rebuilt and published to their appropriate target directories (already contained in their config).

All project folders exist in one folder.

The approach I am considering is to use MSBuild to run a script from the the main folder, with a named list of projects to build/publish.

I have found a good example on creating a build script for MSBuild here, however, this only satisfies the build for one project.

How would I have the process go through a named list of projects/directories to perform the same build/publish script on?

Thanks.

  • 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. Editorial Team
    Editorial Team
    2026-05-27T20:51:38+00:00Added an answer on May 27, 2026 at 8:51 pm

    So I finally had time to take a look at this again.

    I created the following MSBuild script that resides in a folder at the same level of all the websites I have.

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    
    
      <Target Name ="DeleteFiles">
        <Delete Files="..\$(ProjectName)\$(ProjectName)\obj\debug\$(ProjectName).dll"></Delete>
        <Delete Files="..\$(ProjectName)\$(ProjectName)\obj\release\$(ProjectName).dll"></Delete>
        <Delete Files="..\$(ProjectName)\$(ProjectName)\bin\$(ProjectName).dll"></Delete>
        <Delete Files="..\$(ProjectName)\$(ProjectName)\bin\$(ProjectName).pdb"></Delete>
      </Target>
    
      <Target Name="Compile" DependsOnTargets="DeleteFiles">
        <MSBuild Projects="..\$(ProjectName)\$(ProjectName)\$(ProjectName).csproj"
          Targets="Clean;Build"
          Properties="OutputPath=..\$(ProjectName)\bin"/>
      </Target>
    
      <Target Name="Deploy" DependsOnTargets="Compile">
        <MSBuild Projects="..\$(ProjectName)\$(ProjectName)\$(ProjectName).csproj"
            Targets="ResolveReferences;_CopyWebApplication"
            Properties="OutDir=C:\inetpub\wwwroot\$(ProjectName)\bin\;WebProjectOutputDir=C:\inetpub\wwwroot\$(ProjectName)" />
      </Target>
    
    
    </Project>
    

    And is called like this:

    msbuild build.xml /p:ProjectName=”websitetopublish.com” /v:n

    Works great for one site, however I’d like a batch-related solution that reads a text file. For each entry in that text file execute the build process.

    I easily write a .Net console app to to this, but overkill, and I’d like to know how to accomplish this using some for looping mechanisms in batch files.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I need a function that will clean a strings' special characters. I do NOT

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.