Skip to content

Commit 4518fd5

Browse files
committed
Fixed error with parsing response from dotnet nuget list, and added the Readme to the published nuget file
1 parent 699af38 commit 4518fd5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/CodeUpdater/CodeUpdater/CodeUpdater.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@
2929
<PackageReference Include="ProgrammerAl.SourceGenerators.PublicInterfaceGenerator" Version="1.0.0.62" PrivateAssets="All" />
3030
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
3131
</ItemGroup>
32-
32+
33+
<ItemGroup>
34+
<!--Include the ReadMe in the nuget package-->
35+
<None Include="../../../README.md" Pack="true" PackagePath="/" />
36+
</ItemGroup>
3337
</Project>

src/CodeUpdater/CodeUpdater/Updaters/NugetUpdater.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ public class NugetUpdater(ILogger Logger, IRunProcessHelper RunProcessHelper)
1717
public async ValueTask<NugetUpdateResults> UpdateNugetPackagesAsync(string csProjFilePath)
1818
{
1919
var csProjText = File.ReadAllText(csProjFilePath);
20-
var processStartArgs = new ProcessStartInfo("dotnet", $"list {csProjFilePath} package --format json")
21-
{
22-
RedirectStandardOutput = true,
23-
};
24-
25-
var nugetUpdateOutput = await RunProcessHelper.RunProcessToCompletionAndGetOutputAsync("dotnet", $"list {csProjFilePath} package --format json");
20+
var nugetUpdateOutput = await RunProcessHelper.RunProcessToCompletionAndGetOutputAsync("dotnet", $"list \"{csProjFilePath}\" package --format json");
2621
if (!nugetUpdateOutput.CompletedSuccessfully)
2722
{
2823
return new NugetUpdateResults(RetrievedPackageListSuccessfully: false, ImmutableArray<NugetUpdateResult>.Empty);

0 commit comments

Comments
 (0)