runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Visual Studio 2015+ (Community is free) is a prerequisite to build this repository

Open nagamanikandank opened this issue 10 years ago • 6 comments

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 avatar Apr 12 '16 19:04 nagamanikandank

@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!

smoothdeveloper avatar Apr 12 '16 20:04 smoothdeveloper

Hi @smoothdeveloper . Yes. I am getting same error when I run "build clean" from "C:\git\coreclr" using MSBuild Command Prompt for VS2015

nagamanikandank avatar Apr 12 '16 20:04 nagamanikandank

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 avatar Apr 15 '16 09:04 mkborg

@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 avatar Apr 15 '16 12:04 smoothdeveloper

@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

mkborg avatar Apr 15 '16 17:04 mkborg

Closing of age. This should not happen anymore on master.

ViktorHofer avatar Sep 26 '20 08:09 ViktorHofer