We are working to migrate to PackageReference restore style csproj's but have many nuspec's for such projects the rely on some of the default nuget pack CLI behavior. Specifically:
- version substitution
- auto-generation of dependencies section
- auto generation of files section
Essentially, I am looking to run dotnet pack on a csproj and have it use the csproj to generate the files, dependencies and version, but an existing nuspec file for the rest of the metadata.
If I specify NuSpecFile in the csproj, it correctly uses the nuspec file, but no longer generates the files, dependencies, or version based on the csproj.