I'm getting the following errors when attempting to build this application. It was running fine for months and suddenly I'm getting these errors.
Severity Code Description Project File Line Suppression State Warning AD0001 Analyzer 'Microsoft.EntityFrameworkCore.RawSqlStringInjectionDiagnosticAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'. PHAwebsites C:\Development\PHAwebsites\PHAwebsites\CSC 1 Active
Warning NU1701 Package 'Microsoft.AspNet.Mvc 5.2.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. PHAwebsites C:\Development\PHAwebsites\PHAwebsites\PHAwebsites.csproj 1
Warning NU1701 Package 'Microsoft.AspNet.Razor 3.2.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. PHAwebsites C:\Development\PHAwebsites\PHAwebsites\PHAwebsites.csproj 1
Warning NU1701 Package 'Microsoft.AspNet.WebPages 3.2.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. PHAwebsites C:\Development\PHAwebsites\PHAwebsites\PHAwebsites.csproj 1
Warning NU1701 Package 'Microsoft.Web.Infrastructure 1.0.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. PHAwebsites C:\Development\PHAwebsites\PHAwebsites\PHAwebsites.csproj 1
Warning NU1701 Package 'Rotativa 1.7.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. PHAwebsites C:\Development\PHAwebsites\PHAwebsites\PHAwebsites.csproj 1
Error rzc generate exited with code 1. PHAwebsites C:\Users\bob.nuget\packages\microsoft.aspnetcore.razor.design\2.1.2\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets 121
Any ideals on what may be causing this or where I can look to resolve this.
I've searched on these errors and have found some recommendations (update NuGet packages, etc.) but none of them have worked.
Any help would be greatly appreciated. My next step is to start the project over from scratch, but I'm trying to avoid that.