I am using the csproj property <GeneratePackageOnBuild>
to generate a NuGet package from my netstandard2.0 C# project.
I would like to make 2 modifications to the generated package
- Change the id to rename the package
- Add an additional .dll to the .nupkg
The only way I could figure out to accomplish that was to add a custom .nuspec file to my project, and add <NuspecFile>
to the .csproj.
This works fine, but I'm missing some features from the auto-generated NuGet package, like repository binding to my git commit. It also feels less resilient to change.
Is there any way I can modify the SDK build process to get the auto-generated NuGet package, but with my 2 changes?