Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
631 views
in Technique[技术] by (71.8m points)

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

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

c:WindowsMicrosoft.NETFrameworkv4.0.30319MSBuild MySolution.sln

The only what I need to install on a computer was .NET Framework and Visual Studio 2010 shell.

Now I consider upgrading to .NET 4.6., but I cannot find a way how to build a solution without Visual Studio.

I don't want to install Visual Studio 2015, because it is too big for this hosted virtual machine. I hope some MSBuild or Microsoft package installation could be sufficient.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Install:

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...