Last post Oct 19, 2020 12:01 AM by brad18
Oct 18, 2020 12:49 PM|brad18|LINK
I reimaged my dev workstation recently. I installed VS19 and created a Core framwork 2.2 web application. And got the following error. Any thoughts why?
-- Wondering if I needed to install the 2.2 Core SDK before I installed VS19?
Severity Code Description Project File Line Suppression State
Error Project "C:\Users\bagee\.nuget\packages\microsoft.aspnetcore.razor.design\2.2.0\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets" was not imported by "C:\Program Files\dotnet\sdk\3.1.403\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets"
at (340,3), due to the file being invalid. WebApplication1 C:\Users\bagee\.nuget\packages\microsoft.aspnetcore.razor.design\2.2.0\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets 340
Oct 19, 2020 12:01 AM|brad18|LINK
I solved the issue. I needed to clear the NuGet cache (see this screen shot)
Screenshot of VS option