2 out of 8 rated this helpful - Rate this topic

MSBuild

MSBuild is the new build platform for Microsoft and Visual Studio. This section contains conceptual information about MSBuild.

MSBuild Concepts

Explains the concepts behind properties, tasks, targets, and other MSBuild components.

New Methods for Manipulating Items and Properties (MSBuild)

Describes how to define an Item Definition Group as well as how to dynamically create, delete, and change properties in an Item Group.

Resources for Troubleshooting MSBuild Errors

Contains links to external resources that can help you find solutions to MSBuild errors.

Security Warning Dialog Box (MSBuild Project File)

Describes the security dialog box that appears when Visual Studio attempts to open a potentially unsafe project file.

MSBuild Special Characters

Lists characters that MSBuild reserves for special use in specific contexts.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
MS Build Automation
0Hello ,

This is regarding the MS Build Automation. The problem which we are facing here is that we are not able to generate the build file with the code mentioned below. When we are running the project in command prompt , its giving the message that ‘Build Succeeded ‘ but the build file is not coming . I am sending you the procedure along with the code .

Steps carried out in Automation process:
1. Create a new project.
2. Unload the project .
3. Edit the project.
4. Comment the previous code and write the following code :
<?xml version="1.0" encoding="utf-8">
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
</ItemGroup>
<Target Name = "Build">
<Csc Sources ="@(Compile)"/>
<Message Text="The output file is @(EXEFile)"/>
</Target>
</Project>

5. Save the project .
6. In the visual studio command prompt , run the project using :
Msbuild/target:build
This will give us the message that ‘Build succeeded’.
7. But the build file is not coming.


Kindly help me with this problem and send me some relevant documents related to the same.