Update dependencies

This commit is contained in:
genteure 2022-06-07 22:41:09 +08:00
parent 250a315233
commit e01d12c36a
13 changed files with 32 additions and 23 deletions

View File

@ -26,11 +26,12 @@
<PackageReference Include="Serilog.AspNetCore" Version="5.0.0" />
<PackageReference Include="Serilog.Enrichers.Process" Version="2.0.2" />
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
<PackageReference Include="Serilog.Exceptions" Version="8.1.0" />
<PackageReference Include="Serilog.Exceptions" Version="8.2.0" />
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.21308.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
<PackageReference Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta4.22272.1" />
<PackageReference Include="System.Diagnostics.Process" Version="4.3.0" />
</ItemGroup>

View File

@ -1,6 +1,6 @@
using System;
using System.CommandLine;
using System.CommandLine.Invocation;
using System.CommandLine.NamingConventionBinder;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.IO;
@ -16,7 +16,7 @@ namespace BililiveRecorder.Cli.Configure
{
public ConfigureCommand() : base("configure", "Interactively configure config.json")
{
this.AddArgument(new Argument("path") { Description = "Path to work directory or config.json" });
this.AddArgument(new Argument<string>("path") { Description = "Path to work directory or config.json" });
this.Handler = CommandHandler.Create<string>(Run);
}

View File

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.CommandLine;
using System.CommandLine.Invocation;
using System.CommandLine.NamingConventionBinder;
using System.IO;
using System.Linq;
using System.Net;

View File

@ -20,7 +20,7 @@
<PackageReference Include="Serilog" Version="2.11.0" />
<PackageReference Include="StructLinq" Version="0.27.1" />
<PackageReference Include="System.IO.Pipelines" Version="6.0.3" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>
</Project>

View File

@ -8,7 +8,8 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
<PackageReference Include="Spectre.Console" Version="0.44.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.21308.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
<PackageReference Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta4.22272.1" />
</ItemGroup>
<ItemGroup>

View File

@ -1,6 +1,6 @@
using System;
using System.CommandLine;
using System.CommandLine.Invocation;
using System.CommandLine.NamingConventionBinder;
using System.Threading.Tasks;
using BililiveRecorder.ToolBox.Tool.Analyze;
using BililiveRecorder.ToolBox.Tool.DanmakuMerger;

View File

@ -351,7 +351,7 @@
<Version>13.0.1</Version>
</PackageReference>
<PackageReference Include="NuGet.CommandLine">
<Version>6.1.0</Version>
<Version>6.2.0</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
@ -368,7 +368,7 @@
<Version>3.1.0</Version>
</PackageReference>
<PackageReference Include="Serilog.Exceptions">
<Version>8.1.0</Version>
<Version>8.2.0</Version>
</PackageReference>
<PackageReference Include="Serilog.Formatting.Compact">
<Version>1.1.0</Version>
@ -386,7 +386,10 @@
<Version>2.0.1</Version>
</PackageReference>
<PackageReference Include="System.CommandLine">
<Version>2.0.0-beta1.21308.1</Version>
<Version>2.0.0-beta4.22272.1</Version>
</PackageReference>
<PackageReference Include="System.CommandLine.NamingConventionBinder">
<Version>2.0.0-beta4.22272.1</Version>
</PackageReference>
<PackageReference Include="WindowsAPICodePack-Core">
<Version>1.1.2</Version>

View File

@ -34,6 +34,8 @@ namespace BililiveRecorder.WPF.Controls
}
private void ListView_SizeChanged(object sender, SizeChangedEventArgs e)
{
try
{
if (sender is not ListView listView) return;
if (listView.View is not GridView view) return;
@ -45,5 +47,7 @@ namespace BililiveRecorder.WPF.Controls
view.Columns[2].Width = 105;
view.Columns[3].Width = w;
}
catch (Exception) { }
}
}
}

View File

@ -1,6 +1,6 @@
using System;
using System.CommandLine;
using System.CommandLine.Invocation;
using System.CommandLine.NamingConventionBinder;
using System.Diagnostics;
using System.IO;
using System.Net;

View File

@ -11,7 +11,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="PublicApiGenerator" Version="10.3.0" />
<PackageReference Include="Spectre.Verify.Extensions" Version="16.3.2" />
<PackageReference Include="Verify.Xunit" Version="16.8.1" />
<PackageReference Include="Verify.Xunit" Version="17.1.2" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

View File

@ -11,7 +11,7 @@ namespace BililiveRecorder.Core.UnitTests
public static void Init()
{
VerifierSettings.DerivePathInfo(Expectations.Initialize);
VerifierSettings.ModifySerialization(_ => _.IgnoreMembersWithType<Stream>());
VerifierSettings.IgnoreMembersWithType<Stream>();
DiffRunner.Disabled = false;
DiffTools.UseOrder(DiffTool.VisualStudioCode, DiffTool.Rider, DiffTool.WinMerge, DiffTool.VisualStudio);
}

View File

@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="PublicApiGenerator" Version="10.3.0" />
<PackageReference Include="Spectre.Verify.Extensions" Version="16.3.2" />
<PackageReference Include="Verify.Xunit" Version="16.8.1" />
<PackageReference Include="Verify.Xunit" Version="17.1.2" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

View File

@ -19,7 +19,7 @@ namespace BililiveRecorder.Flv.Tests
return Expectations.Initialize(sourceFile, projectDirectory, type, method);
});
VerifierSettings.ModifySerialization(_ => _.IgnoreMembersWithType<Stream>());
VerifierSettings.IgnoreMembersWithType<Stream>();
DiffRunner.Disabled = false;
DiffTools.UseOrder(DiffTool.VisualStudioCode, DiffTool.Rider, DiffTool.WinMerge, DiffTool.VisualStudio);
}