-
Notifications
You must be signed in to change notification settings - Fork 255
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
provide a way to suppress dependencies in dotnet pack #6354
Comments
closing this. Currently this can be achieved by setting Publish=true along with PrivateAssets=all To apply it to every Package Reference, yo can use an ItemDefinitionGroup that does this. |
from @wli3 |
…erty From NuGet/Home#6354, the SuppressDependenciesWhenPacking property can turn off package reference and framework reference dependencies inference in SDK pack. This adds compatibility behavior that turns off packing of PackageReference by default when that flag is true, as well as framework references. The individual package references can still opt in even when the setting is true. Fixes #67
…erty From NuGet/Home#6354, the SuppressDependenciesWhenPacking property can turn off package reference and framework reference dependencies inference in SDK pack. This adds compatibility behavior that turns off packing of PackageReference by default when that flag is true, as well as framework references. The individual package references can still opt in even when the setting is true. Fixes #67
have an option to suppress all package references and framework assembly references in the output nupkg .
this is required for scenarios where package authors publish all their dependencies into the package itself (especially for tools package) and so do not need any dependency in the nuspec itself.
The text was updated successfully, but these errors were encountered: