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

NETCOREAPP3_1 is declared in .NET 5.0 RC1 #42627

Closed
virzak opened this issue Sep 23, 2020 · 2 comments
Closed

NETCOREAPP3_1 is declared in .NET 5.0 RC1 #42627

virzak opened this issue Sep 23, 2020 · 2 comments
Milestone

Comments

@virzak
Copy link
Contributor

virzak commented Sep 23, 2020

Description

When running this code using .NET 5, the expectation is that it will compile, but it doesn't:

using System;

namespace MacroBug
{
    public class Class1
    {

#if NETCOREAPP3_1
NETCOREAPP3_1 Here to break Compilation
#endif

#if NETCOREAPP3_0
NETCOREAPP3_0 Here to break Compilation
#endif

#if !NET5_0
!NET5_0 Here to break Compilation
#endif
        
    }
}

Configuration

.NET 5.0 RC 1 (5.0.100-rc.1.20452.10) on Windows 10 x64

Other information

NETCOREAPP3_0 works as expected (not declared in .NET 5)

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Net untriaged New issue has not been triaged by the area owner labels Sep 23, 2020
@ghost
Copy link

ghost commented Sep 23, 2020

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@stephentoub
Copy link
Member

Thanks. Dup of dotnet/sdk#13377. See dotnet/docs#20692.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
@karelz karelz added this to the 6.0.0 milestone Jan 26, 2021
@karelz karelz removed the untriaged New issue has not been triaged by the area owner label Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants