-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Is C# 7.1 available in preview? #590
Comments
As far as I can tell:
|
Thanks @svick, that clarifies things. |
@svick is correct. Only default literal made it into preview 1. Preview 2 will have all the C# 7.1 features (async Main, inferred tuple names, and pattern matching on a generic type). You don't have to edit your project file or project settings, there is now a codefixer which offers you to change the LangVersion in your project(s) when you use a new feature. I assume it's ok to close the issue now. Feel free to re-open if needed. |
Nice. I prefer |
I prefer to use The current "fix" produces a lot of "fluff" in the project file:
Is this likely to be improved in a future release to just add |
@jcouv This isn't the only thing that inserts conditional sections. Almost anything I do in the properties page does this and I have to manually clean up the mess, so it's never even worth the time opening the properties page. Is this going to be fixed? For example, it's extremely unusual and weird for AllowUnsafeCode to be conditional on build configuration. That's *always* an error when I see it happen. |
Project file issues should be filed over at https://github.com/dotnet/project-system. Thanks! |
Filed dotnet/project-system#2732 for the fluff issue in csproj |
You're awesome @jcouv. 🎉 |
Not sure if this is a good use of an issue here, but here goes 😁
At a conference yesterday, I was listening to Kathleen Dollard. She was of the impression that a preview release of VS with C# 7.1 was available. I'd not heard of this though and thought that 7.1 was coming with VS 20017 update 4 and that there wouldn't be a preview. To further confuse things update 3 is out, yet @gafter has a tentative list of feature for 7.1 coming with that already shipped update.
Anyone have any idea which is the correct version of events here?
The text was updated successfully, but these errors were encountered: