Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/NuGetLicense/NuGetLicense.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.1.1" />
<PackageReference Include="System.CommandLine" Version="2.0.2" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="22.1.0" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Analyzers" Version="2022.0.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
397 changes: 216 additions & 181 deletions src/NuGetLicense/Program.cs

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions src/NuGetLicenseCore/Program.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
// Licensed to the projects contributors.
// The license conditions are provided in the LICENSE file located in the project root

using McMaster.Extensions.CommandLineUtils;
using NuGetUtility;
using System.CommandLine;

namespace NuGetLicenseCore
{
public static class Program
{
public static async Task Main(string[] args)
public static async Task<int> Main(string[] args)
{
var lifetime = new AppLifetime();
int returnCode = await CommandLineApplication.ExecuteAsync<NuGetLicense.Program>(args, lifetime.Token);
lifetime.Done(returnCode);
RootCommand rootCommand = NuGetLicense.Program.CreateRootCommand();
ParseResult parseResult = rootCommand.Parse(args);
return await parseResult.InvokeAsync();
}
}
}
11 changes: 5 additions & 6 deletions src/NuGetLicenseFramework/Program.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
// Licensed to the projects contributors.
// The license conditions are provided in the LICENSE file located in the project root

using McMaster.Extensions.CommandLineUtils;
using NuGetUtility;
using System.CommandLine;

namespace NuGetLicenseFramework
{
public static class Program
{
public static async Task Main(string[] args)
public static async Task<int> Main(string[] args)
{
var lifetime = new AppLifetime();
int returnCode = await CommandLineApplication.ExecuteAsync<NuGetLicense.Program>(args, lifetime.Token);
lifetime.Done(returnCode);
RootCommand rootCommand = NuGetLicense.Program.CreateRootCommand();
ParseResult parseResult = rootCommand.Parse(args);
return await parseResult.InvokeAsync();
}
}
}
63 changes: 0 additions & 63 deletions src/NuGetUtility/AppLifetime.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="NSubstitute" Version="5.3.0" />
<PackageReference Include="TUnit" Version="1.12.3" />
<PackageReference Include="TUnit" Version="1.12.15" />
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="NSubstitute" Version="5.3.0" />
<PackageReference Include="TUnit" Version="1.12.3" />
<PackageReference Include="TUnit" Version="1.12.15" />
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="TinyCsvParser, Version=2.7.1.0, Culture=neutral, PublicKeyToken=d7df35b038077099, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\TinyCsvParser.2.7.1\lib\netstandard2.0\TinyCsvParser.dll</HintPath>
<Reference Include="TinyCsvParser, Version=2.7.2.0, Culture=neutral, PublicKeyToken=d7df35b038077099, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\TinyCsvParser.2.7.2\lib\netstandard2.0\TinyCsvParser.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/targets/PackagesConfigProject/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="TinyCsvParser" version="2.7.1" targetFramework="net472" />
<package id="TinyCsvParser" version="2.7.2" targetFramework="net472" />
</packages>
Loading