Skip to content
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

Question: Should it be NETCOREAPP5_0 or NET5_0? #11409

Closed
martincostello opened this issue Apr 24, 2020 · 7 comments
Closed

Question: Should it be NETCOREAPP5_0 or NET5_0? #11409

martincostello opened this issue Apr 24, 2020 · 7 comments

Comments

@martincostello
Copy link
Member

With the release of .NET 5 preview 3, the TFM has changed from netcoreapp5.0 to net5.0. However, the Define Constant for the TFM is still NETCOREAPP5_0 rather than NET5_0.

Is this intentional (e.g. for back-compat), something that hasn't been done yet but is planned, or a bug because it should have been done as part of preview 3 and missed?

Sorry if this is the wrong repo, I wasn't sure if this was an SDK thing or a compiler thing. I had a look in runtime, sdk and roslyn and couldn't seem to find anything about this topic.

@benaadams
Copy link
Member

/cc @terrajobst

@martincostello
Copy link
Member Author

Any update here? Seems to still be the case with preview 4.

@martincostello
Copy link
Member Author

Related to #10756?

@benaadams benaadams mentioned this issue May 28, 2020
10 tasks
@dsplaisted
Copy link
Member

It will be NET5_0, with NETCOREAPP still defined for backwards compatibility. The spec for this is here: https://github.com/dotnet/designs/blob/master/accepted/2020/net5/net5.md#preprocessor-symbols

We have a PR in progress for it here: #11635

@benaadams
Copy link
Member

net5.0

  • NETCOREAPP, NETCOREAPP3_1 (for backwards compatibility)
  • NET, NET5_0

Shouldn't it also include NETCOREAPP5_0 so as not to regress everything using stuff in preview (including aspnet)

@dsplaisted
Copy link
Member

Shouldn't it also include NETCOREAPP5_0 so as not to regress everything using stuff in preview (including aspnet)

I think we don't want to define NETCOREAPP5_0 in the final release, so we would need to drop support for it sometime. It might be a good idea to have a preview where both NET5_0 and NETCOREAPP5_0 are defined to give folks a wider window to update their projects, but I would guess most people using NETCOREAPP5_0 wouldn't get the message and would end up getting broken when we remove it anyway.

Thoughts?

/cc @terrajobst

@martincostello
Copy link
Member Author

Looks like the change from NETCOREAPP5_0 to NET5_0 happened in preview 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants