Fix LangVersion for C# projects#33868
Conversation
|
The msbuild |
So the right fix is just to move the existing two lines into Directory.Build.targets instead? |
|
Yes :) |
|
I'll update it. But in the meantime, @ViktorHofer, what's going on here? |
|
#33837. I'm working on a fix (workaround) right now. |
|
As a benefit of that error / callstack, I noticed dotnet/sdk#10937 😄 |
46fe4a3 to
84895d6
Compare
|
Nice! |
|
@ViktorHofer, I'm undoing your suggested change; it breaks everything 😦 |
540333c to
84895d6
Compare
|
No worries :) |
For some reason I've not yet determined, the Language==C# condition is failing, resulting in us using latest rather than preview for building all of our C# projects. Since all of our projects are C# except for a single VB project, I've just defaulted to preview unconditionally and overrode it in that single .vbproj (since VB doesn't allow "preview").
cc: @ViktorHofer