question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package .nuspec is missing the <developmentDependency> flag

See original GitHub issue

Just 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:closed
  • Created 3 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
tom-englertcommented, Apr 23, 2020

Yes, agree, I will try to do something next weekend.

1reaction
tom-englertcommented, Apr 22, 2020

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 😞

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found