Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
scottt732 committed Dec 18, 2023
1 parent c612408 commit 63f2c4b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</PropertyGroup>

<ItemGroup Label="Package References">
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" Version="2023.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" PrivateAssets="All" Version="7.0.4" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" PrivateAssets="All" Version="17.7.30" />
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" Version="2023.3.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" PrivateAssets="All" Version="[8.0.0,)" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" PrivateAssets="All" Version="[17.8.14,)" />
<PackageReference Include="MinVer" PrivateAssets="All" Version="4.3.0" />
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" Version="1.1.118" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Source/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</PropertyGroup>

<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="1.1.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="8.0.0" />
</ItemGroup>

<ItemGroup Label="Files">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Build">
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions Source/Sholo.CommandLine/CommandLineApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ void CancelHandler(object o, ConsoleCancelEventArgs e)

if (!cts.IsCancellationRequested)
{
#pragma warning disable VSTHRD103
cts.Cancel();
#pragma warning restore VSTHRD103
e.Cancel = true;
}
else
Expand All @@ -63,7 +65,9 @@ void UnloadingHandler(AssemblyLoadContext ctx)

if (!cts.IsCancellationRequested)
{
#pragma warning disable VSTHRD103
cts.Cancel();
#pragma warning restore VSTHRD103
}

// ReSharper restore AccessToDisposedClosure
Expand Down
8 changes: 4 additions & 4 deletions Source/Sholo.CommandLine/Sholo.CommandLine.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Build">
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="[4.1.0,5.0.0)" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="[7.0.0,)" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="[7.0.0,)" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="[7.0.0,)" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="[8.0.0,)" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="[8.0.0,)" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="[8.0.0,)" />
<PackageReference Include="System.Runtime.Loader" Version="[4.3.0,5.0.0)" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion Tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" PrivateAssets="All" Version="2.5.1">
Expand Down
2 changes: 1 addition & 1 deletion Tests/Sholo.CommandLine.Test/Sholo.CommandLine.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Build">
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup Label="Project References">
Expand Down
5 changes: 3 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"sdk": {
"rollForward": "latestMajor",
"version": "6.0.400"
"version": "8.0.100",
"rollForward": "latestMinor",
"allowPrerelease": false
}
}

0 comments on commit 63f2c4b

Please sign in to comment.