-
Notifications
You must be signed in to change notification settings - Fork 6k
Need to determine which .NET Core SDK has which C# version enabled #4154
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
Comments
Tagging @livarcocc for this |
As a work around, you can add an error pragma to the source to print the version: #error version This cause the compiler to print its version (the compiler software version, not the project LangVersion) to the console. It also causes the build to fail. |
I agree we need this. Do we have a place in docs to put this? |
cross-linking https://github.com/dotnet/cli/issues/8042 which raised some other questions in the process:
Same probably goes for F# since it now ships in-box. |
This is documented in the Roslyn repo wiki article NuGet packages. Though including that information somewhere in docs.MS is probably a good idea. |
@KathleenDollard said:
I'd suggest either the .NET Core "What's new" page, or coordinating with the ongoing versioning work. |
I think we need two things:
|
Putting together information from NuGet packages on Roslyn wiki (which maps Roslyn versions, C# versions and VS versions), Releases on the cli repo (which maps .Net Core SDK versions and VS versions) and from my own attempts of running various versions of the .Net Core SDK, as far as I can tell, corresponding versions are:
|
In theory, it also bundles an F# compiler (and a version of NuGet but that's hardly relevant) |
PR #6081 will fix this. |
This was fixed in #6081 |
@BillWagner Not sure if #6081 solved the problem of this ticket. Having trouble finding the mapping of .NET Core <-> language version (C# in particular). svick's post above is the only thing I can find. Might be missing something? Checked DotNet Core Versions and don't see the language versions that line up. |
@colonelchlorine This paragraph has the information you need. It's the final paragraph in .NET Core Version History We didn't add it to docs, but rather put it on the .NET Core downloads page. That way, it's always up to date.
|
Aha - bit tricky to find. Needed to go to the "Find more in .NET Core 2.1 downloads" or "download archives" from the Downloads page. The archive pages are full of useful info. Thanks @BillWagner |
We explain which C# version ships with which release of Visual Studio. @damtur raised this issue after a talk that he could not find that mapping for the versions that ship with .NET Core SDK versions. For example, which .NET SDK has C# 7.1? or 7.2? This make affect the dotnet CLI, as the compiler ships as a dotnet tool.
We need to make this more prominent if it is published. If not, we need to publish it more prominently.
/cc @richlander @jcouv @KathleenDollard
The text was updated successfully, but these errors were encountered: