I have a Blazor project which I have synced to Github . So when I got a new PC I just cloned the project and now I'm getting the following error everywhere:
Ambiguity between 'NewRound.roundSettings' and 'NewRound.roundSettings' [GolfScoreUI]
Here it's `NewRound.roundSettings, but there is around 80 similar errors, all over the Blazor project (but not in any of the other projects. Here is how it looks in VS Code:
The problem wasn't there on my old PC, when I pushed the code. Also the code runs just fine, so it seems to be "fake" errors.
I have seen similar issues, like this post , but the only solution suggestion I haven tried is to delete the solution file, since that doesn't really seem like a great solution.
Have anyone seen this problem before? And if so, how did you fix it?
UPDATE 1:
Some of the errors link me to a file that doesn't exist. But VS Code helps me create it. If I do this twice, I end up with two empty files, but the errors go away. What the duck?
UPDATE 2:
It works perfectly fine, when I open the solution in Visual Studio 2022. So it appears to be a problem with VS Code. If anyone manages to reproduce it, please let me know, so I can make an issue on the VS Code Github repo.
I had the same problem. Here is what fixed mine Extensions -> C# -> Omnisharp: Sdk Include Prereleases: False (unchecked). Or, put this in your settings.json
"omnisharp.sdkIncludePrereleases": false
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.