This isn't quite a simple as it could be, but it's fairly simple:
- Use a Windows machine with
Visual Studio 2017 v15.4
or greater; and a recent version ofgit
. git clone https://github.com/google/google-api-dotnet-client.git
- Delete all files from the
DiscoveryJson
directory. They are all.json
files. - Copy the discovery-doc
json
file into theDiscoveryJson
directory. - Execute
./BuildGenerated.sh --skipdownload
from withingit bash
. - The nuget package will be generated into
nupkgs/generated/
directory.