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
Remove versioned defines #20179
Comments
We can do that for all the test projects because we don't care about the versioned target frameworks for those projects. However we might still need to keep some of these for the ref/src projects if we care about that build configuration for that project. |
Can you clarify? I thought we now only build ref/src for the latest version. So we would never define eg netcoreapp11 would we? |
For ref/src that ship as an individual nuget package we may need to still have non-latest build configurations building so that the package can contain the correct assets. For anything that doesn't ship in an individual package you are correct they should always just target the latest (i.e. versionless) targets. |
Ah, so we go back to the issue of clearly distinguishing what is its own package. It's too bad we don't segreate the rest of corefx from those. |
I thought we doing harvesting for non latest configurations. |
Unfortunately it is a clean cut in all cases. Consider Immutable collections it is ships in the platform package and in an individual package.
We do in a lot of cases but in some cases, again like Immutable, we still want to produce live updated builds with new fixes for older targets. |
I think |
I agree in general the defines should be targeting a specific platform (i.e. netcoreapp, uap, netfx, etc) however there may be cases for libraries above netstandard to use that define in some cases if it is easier then negating the other specific platforms. |
Agree it makes sense to use it in these cases if they show up. |
The defines are in sync with the SDK ones now. |
We should migrate to versionless platform defines. @joperezr @weshaggard can we do this now if not what has to come first? I see you already renamed all the C# file suffixes to be versionless.
incidentally
#if NET46 -> don't change
Perhaps you already have something tracking this kind of thing.
The text was updated successfully, but these errors were encountered: