Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes the MSB4249 error code.
Message text
MSB4249: Unable to build website project 'value'. The ASP.NET compiler is only available on the .NET Framework version of MSBuild.
Description
The error occurs when you try to build an ASP.NET project (prior to ASP.NET Core) that targets the .NET Framework, by using the dotnet
command-line tool. The dotnet
command-line tool is built for .NET Core (and .NET 5 and later) and doesn't support this legacy project type.
Resolution
You can use Visual Studio or MSBuild.exe to build legacy ASP.NET projects.
Applies to
All versions of MSBuild