I have a solution with a bunch of projects:
ProjectA.csproj
ProjectB.csproj
ProjectC.csproj
These are all individually packed as nuget packages:
dotnet pack ProjectA.csproj --version-suffix 1.0.0 ===> ProjectA-1.0.0.nupkg
dotnet pack ProjectB.csproj --version-suffix 1.0.0 ===> ProjectB-1.0.0.nupkg
dotnet pack ProjectC.csproj --version-suffix 1.0.0 ===> ProjectC-1.0.0.nupkg
Version number is automatically extracted by our build server with gitversion.exe
Now I would like to make a nuget metapackage, that automatically references all three nupkg's.
I could do this with a nuspec file, but then I would need to manually edit it, when our version number changes.
I could make a 4th project ProjectAll.csproj, that references the other three projects. But that would leave me with an empty DLL in the output of the applications using these packages.
What is the best way to proceed?