diff --git a/src/NuGetUtility/Program.cs b/src/NuGetUtility/Program.cs index 80128f0f..9da89604 100644 --- a/src/NuGetUtility/Program.cs +++ b/src/NuGetUtility/Program.cs @@ -154,7 +154,6 @@ private static IAsyncEnumerable GetPackageInformat IEnumerable overridePackageInformation, CancellationToken cancellation) { - Console.WriteLine($"get package information for {projectWithReferences}"); ISettings settings = Settings.LoadDefaultSettings(projectWithReferences.Project); var sourceProvider = new PackageSourceProvider(settings); diff --git a/src/NuGetUtility/ReferencedPackagesReader/ProjectsCollector.cs b/src/NuGetUtility/ReferencedPackagesReader/ProjectsCollector.cs index 22a726b5..96ac737c 100644 --- a/src/NuGetUtility/ReferencedPackagesReader/ProjectsCollector.cs +++ b/src/NuGetUtility/ReferencedPackagesReader/ProjectsCollector.cs @@ -16,8 +16,8 @@ public ProjectsCollector(IMsBuildAbstraction msBuild) public IEnumerable GetProjects(string inputPath) { return Path.GetExtension(inputPath).Equals(".sln") - ? _msBuild.GetProjectsFromSolution(inputPath).Where(File.Exists) - : new List(new[] { inputPath }); + ? _msBuild.GetProjectsFromSolution(Path.GetFullPath(inputPath)).Where(File.Exists).Select(Path.GetFullPath) + : new[] { Path.GetFullPath(inputPath) }; } } }