Provide mechanism to mark packages as PackageReference style only #8566
Labels
Area:PackageDefinition
Priority:2
Issues for the current backlog.
Style:PackageReference
Type:Feature
Similar to "minimum client version", a nuspec should have a feature to indicate that the package was authored for consumption only for packages using
PackageReference
.Currently, package authors have to add targets to create a build error when the package was installed using packages.config.
There should be a path forward for allowing maintainers to drop packages.config support, especially when the supported platforms will only use SDK-style projects (.NET Core, upcoming Xamarin, possibly UWP projects) or PackageReference by default.
This migration path should create an error on package install rather than build to be visible to the user and guide the user to PackageReference migration documentation.
The text was updated successfully, but these errors were encountered: