Exemplo n.º 1
0
        //TODO write test
        public static string GetPackagePath(ConfigurationFile configuration)
        {
            var outputDirectory = configuration.GetProperty(N.NuGet.Pack.OutputDirectory);
            var targetName      = Path.GetFileNameWithoutExtension(configuration.GetProperty(N.IDE.TargetPath));
            var d = new DirectoryInfo(outputDirectory);
            var f = d.GetFiles($"{targetName}.*.nupkg").Aggregate((curMin, x) =>
                                                                  curMin == null || x.LastWriteTime > curMin.LastWriteTime ? x : curMin);

            return(f.FullName);
        }