Compiler Error CS9057 - References Wrong Compiler - Visual Studio

Published: 23 August 2024
on channel: ZetBit
81
2

I stumbled into an issue with the referenced compiler version being wrong by the analyzer assembly. Luckily the easy fix was to update Visual Studio.

My error i got:
The analyzer assembly 'C:\Program Files\dotnet\sdk\9.0.100-preview.3.24204.13\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.dll' references version '4.10.0.0' of the compiler, which is newer than the currently running version '4.9.0.0'.


Watch video Compiler Error CS9057 - References Wrong Compiler - Visual Studio online without registration, duration hours minute second in high quality. This video was added by user ZetBit 23 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 81 once and liked it 2 people.