-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add NET6_0_OR_GREATER preprocessor directive #22625
Comments
Oh, maybe it's because I use VS 16.11.6? 🤔. 17.0.1 is for VS 2021 (afaik) and I'm still using 2019. |
Can repro. There are no VS ConfMicrosoft Visual Studio Community 2022 Installed Version: Community Visual C++ 2022 00482-90000-00000-AA868 ASP.NET and Web Tools 2019 17.0.793.11735 Azure App Service Tools v3.0.0 17.0.793.11735 C# Tools 4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff Common Azure Tools 1.10 Extensibility Message Bus 1.2.6 (master@34d6af2) Microsoft JVM Debugger 1.0 Microsoft MI-Based Debugger 1.0 Microsoft Visual C++ Wizards 1.0 Microsoft Visual Studio VC Package 1.0 Mono Debugging for Visual Studio 17.0.11 (54f19d2) NuGet Package Manager 6.0.1 ProjectServicesPackage Extension 1.0 Test Adapter for Boost.Test 1.0 Test Adapter for Google Test 1.0 TypeScript Tools 17.0.1001.2002 Visual Basic Tools 4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff Visual F# Tools 17.0.0-beta.21522.2+6d626ff0752a77d339f609b4d361787dc9ca93a5 Visual Studio Code Debug Adapter Host Package 1.0 Visual Studio IntelliCode 2.2 Visual Studio Tools for CMake 1.0 VisualStudio.DeviceLog 1.0 VisualStudio.Foo 1.0 VisualStudio.Mac 1.0 Xamarin 17.0.0.341 (d17-0@ac52790) Xamarin Designer 17.0.0.182 (remotes/origin/d17-0@ea204898d) Xamarin Templates 17.0.17 (9e779b0) Xamarin.Android SDK 12.1.0.5 (d17-0/6b0e6b2) Xamarin.iOS and Xamarin.Mac SDK 15.2.0.17 (738fde344) |
@mfkl the project needs to be targeting net6 or greater for |
Is your feature request related to a problem?
I'm trying to define some code that will use NET >= 6 features, however I noticed that there is no
NET6_0_OR_GREATER
preprocessor directive (such as there isNET5_0_OR_GREATER
). There is justNET6_0
.Describe the solution you'd like
The addition of
NET6_0_OR_GREATER
symbol.Additional context
BTW, this is my first issue on SDK, not sure if this should actually be moved to dotnet/runtime or submit as a visual studio suggestion. Not sure were are actually defined preprocessor directives.
The text was updated successfully, but these errors were encountered: