How to build .NET 4.6 Framework app without Visual Studio installed?

后端 未结 1 574
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 10:41

Until now, I could build .NET 4.5.2 using command line

c:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild MySolution.sln

The only w

相关标签:
1条回答
  • 2020-12-04 11:08

    Install:

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

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

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

    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
    0 讨论(0)
提交回复
热议问题