Lesstep
Azure Pipelines · .NET · Checked November 7, 2026

Azure Pipelines: "NETSDK1045: The current .NET SDK does not support targeting .NET 10.0"

Each .NET SDK can build for its own .NET version and every older one, not for a newer one. NETSDK1045 means the SDK that ran this build is older than the TargetFramework in the project file: an SDK 9 build of a net10.0 project, for example. On a pipeline agent several SDKs are often installed side by side, so the question is which one the build actually used, and why.

When the failing build is a pull request's build validation, the pull request waits on it: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, lists the pull request's branch policies with their state in Rider or IntelliJ IDEA, and with Pro runs a failed build policy again once the fix is pushed. Get it on JetBrains Marketplace

What it looks like

What the hosted images have

The usual causes in a pipeline

- task: UseDotNet@2
  inputs:
    packageType: sdk
    version: '10.x'
- script: dotnet --version
- task: DotNetCoreCLI@2
  inputs:
    command: build
    projects: '**/*.csproj'

Azure DevOps pull requests in Rider and IntelliJ IDEA

Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server. It shows the branch policies of a pull request with their state, so a required build that has not passed is next to its pull request, and with Pro you run a failed or expired build policy again from there. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Azure DevOps, Azure Pipelines, .NET and Visual Studio are trademarks of Microsoft Corporation; Rider and IntelliJ IDEA are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft or JetBrains.

More: Dotnet command failed with non-zero exit code · MSB3644: reference assemblies not found · Azure DevOps Server pull requests in Rider · 日本語