Azure DevOps build: "sdk\2.1.515\ [...] not found. Check that a recent enough .NET Core SDK is installed or increase the version in global.json"

IngoB

I get this error only in my Azure DevOps build task, and there is no explicit reference to SDK 2.1.515 anywhere in my solution (.NET Core 3.1 WPF). The "Visual Studio Version" in the build task is set to "Visual Studio 2019".

I also tried to generate a global.json with an explicit reference to the current SDK version (I found a hint here: how to setup SDK version into .Net core project when global.json is not enough?) but that didn't help.

IngoB

The solution was:

  1. On the pipeline's "Taks" tab, select "Pipeline, Build pipeline" (the light blue panel below the tab) and set the "Agent Specification" to "windows-2019".

enter image description here

  1. Make sure the "Visual Studio Version" (in the build solution task) is set to "latest" or to "Visual Studio 2019".

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related