Skip to content
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

How to add p2p dependencies in a nuget package when using dotnet pack #2

Merged
merged 2 commits into from
Nov 10, 2021

Conversation

johnkors
Copy link
Owner

@johnkors johnkors commented Nov 10, 2021

nuget.exe has a switch to solve this common use case -IncludeReferencedProjects, but dotnet pack does not.

With this change, the nuget contents will be:

Contents:
  - File:    _rels/.rels
  - File:    [Content_Types].xml
  - File:    icon.512x512.png
  - File:    lib/net5.0/SomeClassLib.dll
  - File:    lib/net5.0/SomePeerDependency.dll 👈
  - File:    lib/net6.0/SomeClassLib.dll
  - File:    lib/net6.0/SomePeerDependency.dll 👈
  - File:    package/services/metadata/core-properties/f9524ad71fec4ad3bed3d935dd3671f3.psmdcp
  - File:    README.md
  - File:    SomeClassLib.nuspec

@johnkors johnkors added the enhancement New feature or request label Nov 10, 2021
@johnkors johnkors merged commit 979faec into main Nov 10, 2021
@johnkors johnkors deleted the showcase/p2p-dependencies branch November 10, 2021 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant