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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:21:42+00:00 2026-05-31T12:21:42+00:00

I have just started looking into msbuild, because I want to make my own

  • 0

I have just started looking into msbuild, because I want to make my own build scripts. For now I am able to create build scripts that compiles only one project, but how do I handle dependencies?

For example what if I have two projects that gets build with these two msbuild scripts?

  1. projectA.xml
  2. projectB.xml

How do I tell msbuild that when I am executing projectB.xml that it should first execute projectA.xml?

I have googled alot on this, but it does not seem to get anything that a starter like me understands. I would be more than happy with a link to an article describing this, or maybe just a small code example.

The reason why I want this control is because of a library I am building. The library consists of several projects. A developer should be able to pull the source code for the library down and build only the libraries that he wants.

Actually I want to be able to build .net modules from the different projects. That is why I want to be able to run a customized msbuild script.

  • 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-31T12:21:44+00:00Added an answer on May 31, 2026 at 12:21 pm

    I setup my build scripts so that I have a few common targets that do not do anything, but use DependsOnTargets to setup project dependencies and run the build.

    <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    
      <!-- ************************************************************************************************ -->
      <!-- Targets that run the builds -->
      <!-- ************************************************************************************************ -->
      <Target Name="AutoBuild" DependsOnTargets="BuildProject1;BuildProject2;BuildInstallers">
        <OnError ExecuteTargets="NotifyFailure" />
      </Target>
      <Target Name="FullCompile" DependsOnTargets="BuildProject1;BuildProject2">
        <OnError ExecuteTargets="NotifyFailure" />
      </Target>
    
      <!-- Build Project 1 -->
      <Target Name="BuildProject1">
        <!-- Use MSBuild task and point it to build project1.csproj, project1.sln or whatever your projects is -->
      </Target>
    
      <!-- Build Project 2 -->
      <Target Name="BuildProject2">
        <!-- Use MSBuild task and point it to build project2.csproj, project2.sln or whatever your projects is -->
      </Target>
    
      <Target Name="BuildInstallers">
        <!-- Whatever logic you have for building installers -->
      </Target>
    
    </Project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just getting started couchdb and have been looking into writing couch apps.
I have just started looking into .net MVC and I really like it. There
I just started looking into SQLite for the iPhone SDK. I have been looking
I'm not experienced with sitemaps - only just started looking into them. I have
I have just started looking into using Modules in Flex and would like to
I have just started looking into jquerymobile, done simple samples using jquery.mobile-1.0a1 . I
I have JUST started looking into the world of scripting, specifically with with bash,
I just started looking into Ruby on Rails and have been reading Dave Thomas's
I have just started learning python version 3 and trying to create a file
I've just started looking into Amazon's DynamoDB. Obviously the scalability appeals, but I'm trying

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.