private static NpkPath GetNpkPath(string packageDir, string pkgName)
        {
            var newbePk = NugetHelper.GetLastestVersionPackage(packageDir, pkgName);
            var npkPath = new NpkPath(Path.Combine(packageDir, $"{newbePk.Id}.{newbePk.Version.ToFullString()}"));

            return(npkPath);
        }
Exemplo n.º 2
0
        //集成测试[Fact]
        public void GetNewestVersion()
        {
            var npk = NugetHelper.GetLastestVersionPackage(Path.GetFullPath("../../pkgs"), "Package");

            npk.Version.ToString().Should().Be("3.0.0-pre");
            _testOutputHelper.WriteLine(npk.Version.ToString());
        }
Exemplo n.º 3
0
        //集成测试[Fact]
        public void IntergationTest()
        {
            var npk = NugetHelper.GetLastestVersionPackage(@"D:\Codes\Repos\Newbe.Mahua.Framework\packages",
                                                           "Newbe.Mahua.CQP");

            npk.Version.ToFullString().Should().Be("1.0.1.2");
            _testOutputHelper.WriteLine(npk.Version.ToString());
        }