How to generate a nuget package from a discovery doc
This isn't quite a simple as it could be, but it's fairly simple:
- Use a Windows machine with
Visual Studio 2022 v17.8or greater; and a recent version ofgit. git clone https://github.com/google/google-api-dotnet-client.git- Delete all files from the
DiscoveryJsondirectory. They are all.jsonfiles. - Copy the discovery-doc
jsonfile into theDiscoveryJsondirectory. - Execute
./BuildGenerated.sh --skipdownloadfrom withingit bash. - The nuget package will be generated into
nupkgs/generated/directory.