MSBuild
MSBuild is the new build platform for Microsoft and Visual Studio. This section contains conceptual information about MSBuild.
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.
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.
- 4/19/2011
- nehabefrenz
- 7/7/2011
- Thomas Lee