-
|
i.e. for including Do the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
|
+1 And just in case, I add “or should they be on both places?” |
Beta Was this translation helpful? Give feedback.
-
|
I think this question requires some more context.
In CPM world, a PackageReference is supposed to be specified in the project, with a matching PackageVersion in Directory.Packages.props. Note you are free to specify Now the question here, asking where to include the includeassets/private assets suggests that you have PackageReference in both, but I'd discourage that and suggest you use GlobalPackageReference instead for those. |
Beta Was this translation helpful? Give feedback.
-
|
In my case I have Directory.Build.propsA test project (.csproj)Should I instead include this in the .csproj? |
Beta Was this translation helpful? Give feedback.
-
|
Just in case test packages could be an exception (being test projects 'not for production'), this happens not only for packages on test project. For example, I have analyzers that apply only to projects related to MS Orleans. |
Beta Was this translation helpful? Give feedback.
PackageVersion does not support PrivateAssets and IncludeAssets.
PackageReference is the only place where IncludeAssets/PrivateAssets are supported.
The PrivateAssets on the PackageVersion doesn't have any effect.