MsBuild.Sdk.Extras fails to compile with Azure 2019 and 3.0.100-preview-010184
See original GitHub issueHi,
I spoke to @onovotny (the author of MsBuild.Sdk.Extras) and he suggested opening a ticket here.
At the moment I am trying to update ReactiveUI’s build scripts to use the new Azure Devops VS2019 image. This is not an issue with running locally with .NET Core 3.0 SDK installed globally.
My build script first uses the install ‘dotnet 3.0 sdk’ and then tries to compile. The dotnet sdk gets installed into the tools cache directory on the hosted azure host.
- task: DotNetCoreInstaller@0
displayName: Install Dot Net Core v3.0.100-preview-010184
inputs:
version: '3.0.100-preview-010184'
I have the following global.json file (and tried with and without the sdk version)
{
"sdk": {
"version": "3.0.100-preview-010184"
},
"msbuild-sdks": {
"MSBuild.Sdk.Extras": "2.0.0-preview.21"
}
}
I get the following build errors:
Building Splat.csproj
Microsoft (R) Build Engine version 16.0.360-preview+g9781d96883 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
D:\a\1\s\src\Splat\Splat.csproj : error : C:\hostedtoolcache\windows\dncs\3.0.100-preview-010184\x64\sdk\3.0.100-preview-010184\Sdks\MSBuild.Sdk.Extras\Sdk not found. Check that a recent enough .NET Core SDK is installed and/or increase the version specified in global.json.
D:\a\1\s\src\Splat\Splat.csproj : error : C:\hostedtoolcache\windows\dncs\3.0.100-preview-010184\x64\sdk\3.0.100-preview-010184\Sdks\MSBuild.Sdk.Extras\Sdk not found. Check that a recent enough .NET Core SDK is installed and/or increase the version specified in global.json.
D:\a\1\s\src\Splat\Splat.csproj : error MSB4236: The SDK 'MSBuild.Sdk.Extras' specified could not be found.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
MsBuild.Sdk.Extras fails to compile with Azure 2019 and ...
This is not an issue with running locally with .NET Core 3.0 SDK installed globally. My build script first uses the install 'dotnet...
Read more >NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >The SDK 'Microsoft.NET.Sdk' specified could not be found - ...
I encountered this error after playing around with .Net Core 2.0 installation and seemingly messing it up. I would get this same error...
Read more >Incompatible versions of Mono MSBuild and .NET Core ...
NET Core SDK are incompatible on Linux and macOS. If you use such combinations, it will be impossible to build your project in...
Read more >VS 2022 unable to open MonoGame.Framework. ...
One workaround is that I can edit and build the source (for UWP) using VS 2019 and successfully use the output DLL in...
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 FreeTop 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
Top GitHub Comments
Here’s a workaround for now:
With PowerShell, either inline or as a task
This is from the binlog: