且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在未安装Visual Studio的情况下构建.NET 4.6 Framework应用程序?

更新时间:2022-11-03 15:35:54

安装:

  • The .NET 4.6 Framework
  • The Microsoft Build Tools 2015
  • The .NET Framework 4.6 targeting Pack

然后调用其他版本的MsBuild来构建您的解决方案:

Then call a different version of MsBuild to build your solution:

 C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe MySolution.sln

注意,它可能不包含Visual Studio附带的所有位和sdk,因此您可能会遇到缺少.targets文件"或在构建应用程序时遇到的其他问题.其他SDK可以缓解该问题:

Note, this may not contain all bits pieces and sdk's that ship with Visual Studio, so you may encounter "missing .targets files" or other problems building your application. Other SDKs may alleviate that problem:

  • The Windows 10 Platform SDK
  • The Azure SDK