且构网

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

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

更新时间:2022-11-03 15:17:27

安装:

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

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

 C:Program Files (x86)MSBuild14.0BinMsBuild.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: