Closed victor-david closed 5 years ago
Thanks @victor-david for your feedback. I need to add some information to that topic and #if preprocessor directive topics that this behavior only applies to SDK-style projects (.NET Core projects).
I thought that might be the case, but wasn't sure. Thanks for the clarification. @mairaw
"The build system is aware of preprocessor symbols representing the target frameworks..."
This doesn't seem to be the case. I created the following sample console app in Visual Studio 2017 15.9.2 and switched the framework version to everything from 3.5 to 4.61. None of them activated their corresponding conditional block.
if NET35
endif
if NET40
endif
if NET45
endif
if NET451
endif
if NET452
endif
if NET46
endif
if NET461
endif
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.