Hello,
I have installed the Visual C# 2005 Express and created a c# project. I'm trying to create a build file that builds this project. I created a target which uses the VCBuild task with my project file (.csproj) as parameter.
I get the following error:
\build.xml(20,3): error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK,2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.
I guess I'm missing something, I tried to find the file "VCBuild.exe" and coudn't. Should I install the latest vesrion of the SDK or maybe I must have the visual studio 2005 and not the express edition
Thanks.

Error trying to run the vcbuild task
Jonathan Abbott
thanks for the answer, I was not aware of this task.
BUT I tried to use and couldn't find how can I build a project. I have a cs project (.csproj file) and I want to build it. I don't want my build to contain the list of files to compile - the project already has such list.
The VCBuild task works great in VS2005 (and no, I don't have any c++ code, only c# code). Now I need the same behavior in CS Express.
Joel Triemstra
I did know about the MSBuild task and the option to call a target from another build. what I did not know is that the csproj file is a build file. Good to know :)
thanks.
SpeedOfSPin
Hi,
VCBuild task is used to invoke the VCBuild (C++) build system (as you mentioned vcbuild.exe). To build your c# project you do not need this executable unless you have a mixed solution with managed C++. If you want to just build your C# project authoring your own build system then you can use the CSC task which invokes the C# compiler.
If you do need VCBuild.exe then I think you may need to install VS 2005 or c++ components.
Please let me know if this does not answer your questions.
Jay Shrestha
(Jaysh@microsoft.com)
Digo21
Hi,
If you already have a .csproj file and you want to build it from command line then you can simply run msbuild.exe on the csproj file as -
msbuild.exe myproj.csproj (where myproj.csproj is your project). You will either have to do this from the VS command promt or specify the full path to msbuild (<system drive>:\Windows\Microsoft.Net\Framework\V2.0.50727\msbuild.exe)
If you are tring to build this project from another msbuild project file then you can use the MSBuild task as -
<Project xmlns=http://schemas.microsoft.com/developer/msbuild/2003>
<Target Name="BuildSomeProject">
<MSBuild Projects="myproj1.csproj;myproj2.csproj"/>
</Target>
</Project>
Then use msbuild.exe in the above project.
Thanks,
Jay Shrestha
(jaysh@microsoft.com)