-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK sorry :(
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