How do I get msbuild.exe? Can it build a .vcproj when VS2008 is not installed?

若如初见. 提交于 2019-12-08 02:41:20

问题


I know msbuild will be installed, if I install Visual Studio 2005 or 2008.

I know msbuild is also installed if I install the .NET Framework SDK.

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?)

Now to my questions:

  1. Will I get msbuild if I install one or more parts of the Windows SDK that does not include the .NET SDK?

  2. Will I get nmake, too?

  3. 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.


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.

Thanks.


回答1:


  1. msbuild is installed with the framework itself, not just the SDK. So you don't need to download any SDKs.
  2. No, you won't get nmake at the same time.
  3. Yes, you'll be able to build solution and project files without Visual Studio being installed.

Admittedly I've never tried any of these things (as I always have VS installed) but my understanding is that the above is correct.




回答2:


As Jon stated MSBuld is installed with the .NET framework. To build managed projects you don't need Visual Studio, but to build .vcproj files you will have to have Visual Studio installed. With Visual Studio 2010 .vcproj files are MSBuild files so this requirement is lifted.




回答3:


You can build .vcproj files with MSBuild 2.0/3.5 without VS installed. If you don't have VS, you need the appropriate Windows SDK installed. Either will work.



来源:https://stackoverflow.com/questions/1415497/how-do-i-get-msbuild-exe-can-it-build-a-vcproj-when-vs2008-is-not-installed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!