.net-corenugetcsprojpackagereference

Controlling how a nuget package is included in the project


I have a library that has both an API and an analyzer. I will distribute it as NuGet package. Although I did not add any special thing to the csproj or nuspec, when the reference is added, it looks like this:

<PackageReference Include="Integration" Version="1.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

But I want it to be included without filters, just the bare

<PackageReference Include="Integration" Version="1.0.0" />

What controls this behaviour, can it be influenced in the desired direction?

I know of the <DevelopmentDependency> tag, but it is not set in my .csproj.


Solution

  • Setting <DevelopmentDependency> tag to false in .csproj made it work as I wanted it.