This example shows how to create a new package registration with some required metadata, such as package id, package owners, and some flags. It uses an instance of PackageRegistrationClient to interact with the NuGet gallery. Example 2: Adding a new version to a package registrationcsharp var registrationClient = new PackageRegistrationClient(new Uri(nugetGalleryUrl), new HttpClient()); var packageVersion = new PackageVersion() { Version = "1.0.1", NormalizedVersion = "1.0.1", PackageFileSize = 1024, // in bytes Published = DateTime.UtcNow }; await registrationClient.AddPackageVersionAsync("MyPackage", packageVersion, apiKey); ``` This example shows how to add a new package version to an existing package registration. It uses the AddPackageVersionAsync method of the PackageRegistrationClient class. PackageRegistration is a library for managing NuGet packages in a gallery.