Building source code fails
See original GitHub issueBuild process fails with the message saying “Could not find a version of MSBuild which satisfies the requirements specified in korebuild.json.”
To Reproduce
Steps to reproduce the behavior: Using this version of ASP.NET Core ‘v3.0.0-preview-18579-0056’
- git clone --recursive https://github.com/aspnet/AspNetCore
- git submodule update --init –recursive
- .\build.cmd
Expected behavior
All the build processes complete.
Screenshots
Additional context
Here is the console output including error message.
C:\Users\Administrator\Documents\GitHub\AspNetCore>.\build.cmd
WARNING: No default group of projects was specified, so building the 'managed' and 'native' subset of projects. Run
`build.cmd -help` for more details.
Using KoreBuild 3.0.0-build-20181214.1
WARNING: dotnet found on the system PATH is 'C:\Program Files\dotnet\dotnet.exe' but KoreBuild will use
'C:\Users\Administrator\.dotnet\x64\dotnet.exe'.
WARNING: Adding 'C:\Users\Administrator\.dotnet\x64' to system PATH permanently may be required for applications like
Visual Studio or VS Code to work correctly.
Adding C:\Users\Administrator\.dotnet\x64 to PATH
.NET Core SDK 3.0.100-preview-009750 is already installed. Skipping installation.
Could not find a version of MSBuild which satisfies the requirements specified in korebuild.json.
発生場所 C:\Users\Administrator\.dotnet\buildtools\korebuild\3.0.0-build-20181214.1\scripts\KoreBuild.psm1:511 文字:5
+ throw 'Could not find a version of MSBuild which satisfies the re ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Could not find ...korebuild.json.:String) [], RuntimeException
+ FullyQualifiedErrorId : Could not find a version of MSBuild which satisfies the requirements specified in korebu
ild.json.
The output of dotnet --info
C:\Users\Administrator\Documents\GitHub\AspNetCore>dotnet --info
A compatible SDK version for global.json version: [3.0.100-preview-009750] from [C:\Users\Administrator\Documents\GitHub\AspNetCore\global.json] was not found
Host (useful for support):
Version: 2.2.0
Commit: 1249f08fed
.NET Core SDKs installed:
1.0.4 [C:\Program Files\dotnet\sdk]
1.1.0 [C:\Program Files\dotnet\sdk]
2.1.4 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.300 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.502 [C:\Program Files\dotnet\sdk]
2.1.600-preview-009426 [C:\Program Files\dotnet\sdk]
2.2.101 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
I refer to this thread https://gitter.im/aspnet/Home/~iframe and “Desktop development with C++” has been installed.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:25 (15 by maintainers)
Top Results From Across the Web
How can I fix "build failed, do you want to continue"? In ...
A failed build means the code cannot be compiled => there is nothing to run. Or maybe there is a previous successful build...
Read more >When CodeQL fails to find any source code, ...
When CodeQL fails to find any source code, you need to resolve this problem to unblock code scanning analysis. Code scanning is available...
Read more >Code error when building Unreal Engine 5 Source ...
I'm attempting to build the source code version of Unreal Engine 5 via Visual Studio and I've run into an error after building....
Read more >Error Building Source Code - Programming & Scripting
I am trying to download and build the source code from GitHub so I can do C++ projects in ... ERROR : UBT...
Read more >Fix program errors and improve code - Visual Studio ...
This article describes some basic ways Visual Studio can help you find and fix problems in your code, including build errors, code analysis, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Please give our instructions here a try: https://github.com/aspnet/AspNetCore/blob/master/docs/BuildFromSource.md#install-pre-requistes
@natemcmaster I think we can remove Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81 from the component list. It was used for building installers which I believe has been upgraded to the latest version of the win sdk.