When using Visual Studio Enterprise 16.3.7 on two separate machines, one builds fine and the other machine throws the error:
Feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater.
This can easily be solved on the non-working machine by setting LangVersion
in .csproj
as suggested here https://stackoverflow.com/a/48085575/3850405 or let Visual Studio automatically fix it like the screenshot above.
<LangVersion>8.0</LangVersion>
What I can't understand is why one machine builds fine without this line in .csproj
and the other machine needs it?