我是否需要.NET framework 2.0 SDK从基于.NET的编译器的命令行进行编译

时间:2022-09-13 00:10:47

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

我的计算机上安装了.Net Framework 2.0。使用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 ???

当我尝试从命令行编译它并使用msbuild.exe导航到.NET frameworl 2.0文件夹时,它显示警告和错误VCBuild.exe不可用安装framework2.0 sdk我真的需要它吗???

Help me

3 个解决方案

#1


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

尝试免费的Visual C ++编译器,它可以帮助您获得所需的内容。

You can find it here.

你可以在这里找到它。

#2


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

那么你需要一个C ++编译器,当然 - 并且在普通框架中没有C ++编译器(与C#不同)。

#3


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.

你不能只使用.net框架的msbuild.exe来构建一个.net项目你需要有一个.net framework 2.0 SDK,或者你应该安装.net Studio。更好的安装visual studio express版本并使用MSBuild.exe到您的应用程序,而无需打开visual studio的IDE。

#1


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

尝试免费的Visual C ++编译器,它可以帮助您获得所需的内容。

You can find it here.

你可以在这里找到它。

#2


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

那么你需要一个C ++编译器,当然 - 并且在普通框架中没有C ++编译器(与C#不同)。

#3


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.

你不能只使用.net框架的msbuild.exe来构建一个.net项目你需要有一个.net framework 2.0 SDK,或者你应该安装.net Studio。更好的安装visual studio express版本并使用MSBuild.exe到您的应用程序,而无需打开visual studio的IDE。