Gaweringo
`dotnet build` errors NU1202 but building in IDE works
I have
Npgsql.EntityFrameworkCore.PostgreSQL
as my package for EF and I tried to run dotnet ef migrations add
to create a new migration but it returns with Build failed. Use dotnet build to see the errors.
.
When I then run dotnet build
I get this error:
But when I use the build or run functions in Rider or Visual Studio it builds and runs fine. (Rider also shows errors after running dotnet build
which go away after building with rider itself)
What I tried:
TargetFramework
in my .csproj
is set to net7.0
. I tried net6.0
and I got the same error but with net60
.13 replies