Package .nuspec is missing the <developmentDependency> flag
See original GitHub issueJust realized that after installing the PrivateAssets="all"
is missing in the PackageReference
node.
I have added PrivateAssets="all"
manually for all weavers where this was missing, and it always worked fine, so looks like #362 is outdated and only relates to use of package.config
, which IMO can be considered as obsolete.
There should be a property <DevelopmentDependency>true</DevelopmentDependency>
in the project, like in Fody
@SimonCropp I did not check other weavers yet, but I guess this is missing in others, too. Maybe this should be added as a default to the FodyPackaging.props?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
nuspec File Reference for NuGet
The .nuspec file contains package metadata used when building a package and to provide information to package consumers.
Read more >pack command (NuGet CLI)
The pack command will ignore package entries in packages. config that have the developmentDependency attribute set to true .
Read more >Custom Nuget package shows missing dependency error
So when NuGet restores the package it searches for other packages that this package depends on, here cl2 , but there is none,...
Read more >Have Your NuGet Package Install Itself As A Development ...
I've created a PowerShell script that will automatically go in and adjust the project's packages.config file to mark your package as a ...
Read more >Introducing Femto
Project dependency analysis: going through all your project's dependencies, the direct and the transitive, extracting information about which ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, agree, I will try to do something next weekend.
Unfortunately if just one project in the chain of dependencies forgets to add the
PrivateAssets="all"
, the final output will have the weavers attribute-assembly marked as a deployment dependency 😞