Main Problem
The above is just one of over 1k+ errors in my C# project. I am using a 2017 MacBook Pro with Catalina 10.15.6. and VSCode. The dotnet-SDK I have is 3.1.401. I tried uninstalling and re-installing it but that didn't work. I had a project that was working perfectly then last night I did brew upgrade and today I have all of these errors. Of course I tried dotnet restore dotnet ef database update Those commands succeed in reinstalling the packages to the project directory and re-applying the database migrations (this project uses a postgres database in case that's important), but it still has all of those errors.
I was able to get the project working on Firefox after I re-created a new development SSL certificate.
When I tried to run the app and connect to `https://localhost:5001" like I always do I got this
"Secure Connection Failed An error occurred during a connection to localhost:5001. PR_END_OF_FILE_ERROR The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem."
I fixed this with the following commands dotnet dev-certs https --clean and then dotnet dev-certs https And then it started to work fine on Firefox but I still got those 1k+ errors in VScode.
In Conclusion
The project works, I just have a ton of errors in VSCode and I'm not sure what's causing them.
Error Samples
The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.The type 'Task' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)