You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are telling NuGet that you don't want to have Project A to be picked up as NuGet-dependency. This is implicit, you don't have control about that. **The down-side is** the assmeblies of Project A, but not the assemblies of the packages of Project A, are not present in package of Project B.
184
+
By setting `PrivateAssets="all"` on the `ProjectReference`, you tell NuGet not to emit Project A as a dependency when packing Project B.
185
185
186
-
By removing `PrivateAssets="all"` you disable the implicit behaviour of NuGet and the Project A will be picked up as NuGet dependency and EACH non-dependency package (also called transitive package).
186
+
If you remove `PrivateAssets="all"`, NuGet can emit Project A as a package dependency, including its transitive package dependencies.
By having installed my package I assist in the implicit behaviour of NuGet: By not picking up Project A as NuGet-dependency copy over the direct assemblies produced by Project A to the bin-folder of Project B. **This has the following drawback:**
203
+
When this package is installed, it complements NuGet's behavior by copying Project A's build output into Project B's output. **This has the following drawback:**
204
204
205
-
Because of the implicit behaviour and the usage of my package you have assemblies of Project A in Project B that are in need of the assemblies provided by packages (in your example "Some Package") you referenced in Project A. So a workaround is to add the packages from Project A in Project B explicitly as shown here:
205
+
As a result, Project B may contain Project A assemblies without the package-provided assemblies that Project A depends on (for example, `SomePackage`). So a workaround is to add the packages from Project A in Project B explicitly as shown here:
206
206
207
207
```
208
208
<!-- Project A -->
@@ -212,7 +212,7 @@ Because of the implicit behaviour and the usage of my package you have assemblie
0 commit comments