-
Notifications
You must be signed in to change notification settings - Fork 105
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
C# 7 #451
Comments
C# 7, yes. Latest, fine by me. |
You know what, I did mean this just as a question but I'm happy to help if there's something you had in mind. |
But we should convert all to packagereference format first. |
@OsirisTerje Every csproj except the VSIX csproj is already using the new csproj SDK and PackageReference. Oh hey, look! I forgot I already added |
💭 We could use PackageReference for the VSIX development-time dependency instead of https://github.com/nunit/nunit3-vs-adapter/blob/master/src/NUnit3TestAdapterInstall/packages.config. Should we? |
@jnm2 Yes, we should. |
While working on #296, I'm running into cases where I want to use default literals or
?? throw
oris var
andout var
. For example:Instead of:
Since none of the projects have an explicit version set, and the solution already requires VS2017, and @oznetmaster doesn't transpile this codebase to C# 3, it seems like C# 7 is guaranteed to be available to anyone in the code. Does this mean we accept C# 7.0 code?
What about using
<LangVersion>latest</LangVersion>
or7.1
or7.2
so that I can use default literals or readonly structs? C# 7.1 requires VS 15.3 (or a package reference) and C# 7.2 requires VS 15.5 (or a package reference).The text was updated successfully, but these errors were encountered: