I am creating a NuGet package, and I would like, when this package is referenced, for the reference to look like this:
<PackageReference Include="A.PluginBase" Version="1.0.0">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
The article here describes why this is necessary, but it does not describe how to create a package such that manual editing of the consumer's .csproj file is necessary. How do I accomplish this, ideally without having to create a .nuspec (i.e. by altering the package's .csproj)?