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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:07:16+00:00 2026-05-10T18:07:16+00:00

I am trying to learn how to use MSBuild so we can use it

  • 0

I am trying to learn how to use MSBuild so we can use it to build our project. There’s what seems to be a very big hole in the documentation, and I find the hole everywhere I look, the hole being how do you name or otherwise designate the MSBuild project file?

For example, the tutorial on MSBuild that can be downloaded from Microsoft goes into some detail on the contents of the build file. For example, here’s a little bit of their Hello World project file.

<Project MSBuildVersion = '1.0' DefaultTargets = 'Compile'>    <Property appname = 'HelloWorldCS'/>    <Item Type = 'CSFile' Include = 'consolehwcs1.cs'/>    <Target Name = 'Compile'>       <Task Name = 'CSC' Sources = '@(CSFile)'>          <OutputItem  TaskParameter = 'OutputAssembly' Type = 'EXEFile' Include = '$(appname).exe'/>       </Task>       <Message Text='The output file is @(EXEFile)'/>    </Target> </Project> 

And it goes on blah, blah, blah Items blah blah blah tasks, here’s how you do this and here’s how you do that. Useless, completely useless. Because they never get around to saying how this xml file is supposed to be recognized by the MSBuild app. Is it supposed to be named in a particular way? Is it supposed to be placed in a particular directory? Both? Neither?

It isn’t just the MS tutorial where they don’t tell about it. I haven’t been able to find it on MSDN, or on any link I can wring out of Groups.Google, either.

Does someone here know? I sure hope so.

Edited to add: I mistook the .proj file included in the tutorial to be the .csproj file and that is what one fed to MSBuild, but it took the answer below before I saw this. It should have been rather obvious, but I missed it.

  • 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-10T18:07:17+00:00Added an answer on May 10, 2026 at 6:07 pm

    You can name the file as you see fit. From the help for MSBuild

    msbuild.exe /?  Microsoft (R) Build Engine Version 2.0.50727.3053 [Microsoft .NET Framework, Version 2.0.50727.3053] Copyright (C) Microsoft Corporation 2005. All rights reserved.  Syntax:              MSBuild.exe [options] [project file] 

    So if you save the file as mybuildfile.xml you would use the syntax:

    msbuild.exe mybuildfile.xml 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn to use SDL for a little game I'm writing ,
I am trying to learn CodeIgniter to use for a shopping site, but I
I'm trying to learn advanced sql and how to use system queries (sql server).
I am trying to learn and use an SDK for a vendor's product. Unfortunately,
I'm trying to learn to use vimdiff well. Currently I figured out how to
I am trying to learn to use buffer overflow attack in Ubuntu. Unfortunately, I
I am trying to learn to use the wx packages to make GUI programs
I've just learnt a bit jQuery, and am trying to use it for a
Trying to learn a bit of CSS and I want a horizontal navbar and
In trying to learn how to create objects in ActionScript, I have had no

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.