Exemplo n.º 1
0
        public void NuGetClient_Packages_PackageVersions()
        {
            NuGetClient ngc = new NuGetClient();

            IEnumerable <NuGetVersion> package_versions = ngc.GetPackageVersionsAsync
                                                          (
                "Xamarin.AndroidX.Core"
                                                          ).Result;

            #if MSTEST
            Assert.IsNotNull(package_versions);
            #elif NUNIT
            Assert.NotNull(package_versions);
            #elif XUNIT
            Assert.NotNull(package_versions);
            #endif

            Console.WriteLine($"Package metadata...");
            foreach (NuGetVersion v in package_versions)
            {
                Console.WriteLine($"----------------------------------------------------------");
                Console.WriteLine($"Version         : {v.Version}");
                Console.WriteLine($"Summary         : {v.OriginalVersion}");
            }

            return;
        }
Exemplo n.º 2
0
        public void Test_Versions()
        {
            NuGetClient nc = new NuGetClient();

            var versions = nc.GetPackageVersionsAsync("Xamarin.AndroidX.Activity").Result;

            foreach (NuGetVersion version in versions)
            {
                Console.WriteLine($"Found version {version}");
            }

            return;
        }