Skip to content

Commit

Permalink
fix netframework app
Browse files Browse the repository at this point in the history
  • Loading branch information
sensslen committed Feb 26, 2024
1 parent 8000938 commit 7ca6e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/NuGetUtility/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ private static IAsyncEnumerable<ReferencedPackageWithContext> GetPackageInformat
IEnumerable<CustomPackageInformation> overridePackageInformation,
CancellationToken cancellation)
{
Console.WriteLine($"get package information for {projectWithReferences}");
ISettings settings = Settings.LoadDefaultSettings(projectWithReferences.Project);
var sourceProvider = new PackageSourceProvider(settings);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public ProjectsCollector(IMsBuildAbstraction msBuild)
public IEnumerable<string> GetProjects(string inputPath)
{
return Path.GetExtension(inputPath).Equals(".sln")
? _msBuild.GetProjectsFromSolution(inputPath).Where(File.Exists)
: new List<string>(new[] { inputPath });
? _msBuild.GetProjectsFromSolution(Path.GetFullPath(inputPath)).Where(File.Exists).Select(Path.GetFullPath)
: new[] { Path.GetFullPath(inputPath) };
}
}
}

0 comments on commit 7ca6e5d

Please sign in to comment.