locked
Building error - Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets RRS feed

  • Question

  • User1642783844 posted

    Hi guys,

    I've updated the my ASP.NET 472 to ASP.CORE 2.2.0; after this when I rebuild the project had this error:

    .nuget\packages\microsoft.aspnetcore.razor.design\2.2.0\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(161,5): error : Assembly location for Razor SDK Tasks was not specified. The most likely cause is an older incompatible version of Microsoft.NET.Sdk.Razor, or Microsoft.NET.Sdk.Web used by this project. Please target a newer version of the .NET Core SDK.

    If I install the previous versione (2.1..6) the project has rebuild correctly.

    Someone can help me?

    Thank you.

    Wednesday, December 5, 2018 5:11 PM

All replies

  • User1724605321 posted

    Hi pBeltrami,

    I would suggest you create a new .NET Core 2.2 template project , and compare the new one's csproj file and the old one's . Pay attention to `TargetFramework` and related `PackageReference` , check the `Version` variable .

    Best Regards,

    Nan Yu

    Thursday, December 6, 2018 3:30 AM