Lesstep
Azure Pipelines · MSBuild · Checked November 7, 2026

Azure Pipelines: MSB4019 "The imported project ... was not found" (WebApplication.targets, SqlTasks.targets)

A classic ASP.NET web application project imports Microsoft.WebApplication.targets, and a SQL Server database project imports Microsoft.Data.Tools.Schema.SqlTasks.targets. Both files are installed with Visual Studio or the Visual Studio Build Tools, not with the .NET SDK. When the project is built with dotnet build, or on an agent without them, MSBuild looks for the file where it is not and stops with MSB4019.

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, and with Pro runs a failed build policy again once the fix is pushed. Get it on JetBrains Marketplace

What it looks like

On Microsoft-hosted agents: build with Visual Studio's MSBuild

On a self-hosted agent: the Build Tools workloads

A database project: the SDK-style format

The package with copies of the targets

Azure DevOps pull requests in IntelliJ IDEA and Rider

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, ASP.NET, SQL Server and Visual Studio are trademarks of Microsoft Corporation; IntelliJ IDEA and Rider are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft or JetBrains.

More: MSB3644: the reference assemblies were not found · Dotnet command failed with non-zero exit code · no agent satisfies the demands · 日本語