我如何获得msbuild.exe?未安装VS2008时可以构建.vcproj吗? [英] How do I get msbuild.exe? Can it build a .vcproj when VS2008 is not installed?
问题描述
如果安装Visual Studio 2005或2008,我知道将安装msbuild.
I know msbuild will be installed, if I install Visual Studio 2005 or 2008.
我知道如果安装.NET Framework SDK,也会安装msbuild.
I know msbuild is also installed if I install the .NET Framework SDK.
从.NET 3.0开始,我认为不再有单独的".NET Framework SDK".相反,如果我想要免费的SDK东西-所有.NET命令行工具,所有基类库-那么我可以下载Windows SDK,然后安装它的.NET部分.如果这样做,我还将获得msbuild工具. (对吗?)
As of .NET 3.0, I think there is no longer a separate ".NET Framework SDK". Instead if I want the free SDK stuff - all the .NET command line tools, all the base class libraries - then I can download the Windows SDK, and install the .NET portion of it. I will also get the msbuild tool if I do this. (Right?)
现在我的问题是:
-
如果我安装Windows SDK的一个或多个不包含.NET SDK的部分,我会得到msbuild吗?
Will I get msbuild if I install one or more parts of the Windows SDK that does not include the .NET SDK?
我也会得到nmake吗?
Will I get nmake, too?
如果我没有安装Visual Studio,MSBuild是否可以构建引用.vcproj文件的.sln文件?我知道msbuild可以构建.vbproj和.csproj,但是它可以构建.vcproj吗?我也认为对于VS2010,.vcproj文件更改为".csproj格式".但这是vs2008的.vcproj.
If I don't have Visual Studio installed, will MSBuild be able to build a .sln file that references a .vcproj file? I know msbuild can build .vbproj and .csproj, but can it build .vcproj? I also think that for VS2010, the .vcproj file changes to the ".csproj format". But this is a .vcproj from vs2008.
我正在分发一些源代码,我想描述构建源代码所需的内容.我知道源代码可以使用VS 2008构建.我还想描述一下如何在不使用VS2008的情况下构建源代码.
I am distributing some source code and I want to describe what is required to build the source. I know the source can be built with VS 2008. I want to also describe how it can be built without VS2008.
谢谢.
推荐答案
-
msbuild
与框架本身一起安装,而不仅仅是SDK.因此,您无需下载任何SDK. - 不,您不会同时获得
nmake
. - 是的,您将能够在不安装Visual Studio的情况下构建解决方案和项目文件.
msbuild
is installed with the framework itself, not just the SDK. So you don't need to download any SDKs.- No, you won't get
nmake
at the same time. - Yes, you'll be able to build solution and project files without Visual Studio being installed.
诚然,我从未尝试过这些东西(因为我一直都安装了VS),但我的理解是上面的说法是正确的.
Admittedly I've never tried any of these things (as I always have VS installed) but my understanding is that the above is correct.
这篇关于我如何获得msbuild.exe?未安装VS2008时可以构建.vcproj吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!