views:

204

answers:

3

HI i write a code like

filename test.cpp

#include<stdio.h>

void main()

{

 printf("Hello");
}

}

I have .Net Framework 2.0 installed in my computer. Compiling using MSBuild.exe

when i try to compile this from command line and navigated to .NET frameworl 2.0 folder using msbuild.exe it shows warning and error that VCBuild.exe not available install framework2.0 sdk do i really need it ???

Help me

A: 

Well you need a C++ compiler from somewhere, certainly - and there's no C++ compiler in the plain framework (unlike C#).

Jon Skeet
+1  A: 

Try the free Visual C++ compiler, that should get you what you are looking for.

You can find it here.

Lazarus
A: 

You can't build a .net project by using only .net framework's msbuild.exe You need to have a .net framework 2.0 SDK or you should have installed .net Studio. Better you install visual studio express edition and use MSBuild.exe to your app without opening visual studio's IDE.