Visual Studio 2015+ (Community is free) is a prerequisite to build this repository
I already have Visual Studio 2015 Community version installed, still I get the error "Visual Studio 2015+ (Community is free) is a prerequisite to build this repository" when I run "build clean" from "C:\git\coreclr" folder
@nagamanikandank could you confirm if you get the same message if you run this from a "Visual Studio" prompt (in start menu: MSBuild Command Prompt for VS2015)?
Thanks!
Hi @smoothdeveloper . Yes. I am getting same error when I run "build clean" from "C:\git\coreclr" using MSBuild Command Prompt for VS2015
Default installation of Visual Studio 'Community' doesn't have 'common tools for Visual C++' necessary for 'coreclr' build. After default installation they shall be added explicitly in 'setup' utility:
'Features'
-> 'Programming Languages'
--> 'Visual C++'
---> 'common tools for Visual C++'.
@mkborg is it possible to change the message to "C++ compiler wasn't found, try to install it with Visual Studio 2015 setup tool" or something like this?
@smoothdeveloper Indeed it is possible. ;-) Unfortunately I am from Linux world and fixing Windows build is my last priority. I just had been forced to run Wiindows build to get unit test binaries which can't be built on Linux. So I met the above issue and tracked it down to the culprit.
Let me share one extra piece of knowledge:
According to "coreclr/Documentation/building/windows-instructions.md":
PowerShell is used in the build system.
By default Windows 7 has 'powershell' v.2.0 (can be checked with 'powershell get-host' command) which lacks some features necessary for 'coreclr' build.
Without suitable 'powershell' Windows build fails with useless error message (see issue dotnet/runtime#5239).
There is no standalone 'powershell'. It is integral part of some software packages. For example, it is part of 'Windows Management Framework 4.0': https://www.microsoft.com/en-us/download/details.aspx?id=40855
Closing of age. This should not happen anymore on master.