Skip to content

Commit 26d31d8

Browse files
Update dependencies
1 parent 8b5ed69 commit 26d31d8

11 files changed

Lines changed: 36 additions & 33 deletions

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json.schemastore.org/global",
33
"sdk": {
4-
"version": "8.0.204",
4+
"version": "10.0.201",
55
"rollForward": "latestFeature"
66
}
77
}

src/Directory.Build.props

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<Project>
22
<PropertyGroup Label="Settings">
33
<Deterministic>true</Deterministic>
4-
<LangVersion>12</LangVersion>
4+
<LangVersion>14</LangVersion>
55
<DebugSymbols>true</DebugSymbols>
66
<DebugType>embedded</DebugType>
77
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
<IsPackable>false</IsPackable>
10+
<NoWarn>$(NoWarn);RS1038</NoWarn>
1011
</PropertyGroup>
1112

1213
<PropertyGroup Label="Deterministic Build" Condition="'$(GITHUB_ACTIONS)' == 'true'">
@@ -33,12 +34,12 @@
3334

3435
<!-- Allow folks to build with minimal dependencies (though they will need to provide their own Version data) -->
3536
<ItemGroup Label="Build Tools Package References" Condition="'$(UseBuildTimeTools)' != 'false'">
36-
<PackageReference Include="MinVer" PrivateAssets="All" Version="4.3.0" />
37-
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="8.0.0" />
37+
<PackageReference Include="MinVer" PrivateAssets="All" Version="7.0.0" />
38+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="10.0.201" />
3839
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
3940
<PrivateAssets>All</PrivateAssets>
4041
</PackageReference>
41-
<PackageReference Include="Roslynator.Analyzers" Version="4.12.2">
42+
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
4243
<PrivateAssets>All</PrivateAssets>
4344
</PackageReference>
4445
</ItemGroup>

src/Spectre.Console.Analyzer.Sandbox/Spectre.Console.Analyzer.Sandbox.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
@@ -12,7 +12,7 @@
1212
<ProjectReference Include="..\Spectre.Console.Analyzer\Spectre.Console.Analyzer.csproj" PrivateAssets="all" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
1313
</ItemGroup>
1414
<ItemGroup>
15-
<PackageReference Include="Spectre.Console" Version="0.49.1" />
15+
<PackageReference Include="Spectre.Console" Version="0.55.0" />
1616
</ItemGroup>
1717

1818
</Project>

src/Spectre.Console.Analyzer.Tests/CodeAnalyzerHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ internal static class CodeAnalyzerHelper
66

77
static CodeAnalyzerHelper()
88
{
9-
CurrentSpectre = ReferenceAssemblies.Net.Net60.AddAssemblies(
10-
ImmutableArray.Create(typeof(AnsiConsole).Assembly.Location.Replace(".dll", string.Empty)));
9+
CurrentSpectre = ReferenceAssemblies.Net.Net100.AddAssemblies(
10+
ImmutableArray.Create(
11+
typeof(AnsiConsole).Assembly.Location.Replace(".dll", string.Empty)));
1112
}
1213
}

src/Spectre.Console.Analyzer.Tests/Properties/Usings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
global using Microsoft.CodeAnalysis.CSharp.Testing;
1010
global using Microsoft.CodeAnalysis.Diagnostics;
1111
global using Microsoft.CodeAnalysis.Testing;
12-
global using Microsoft.CodeAnalysis.Testing.Verifiers;
1312
global using Microsoft.VisualStudio.Composition;
1413
global using Spectre.Console.Analyzer.FixProviders;
1514
global using Xunit;

src/Spectre.Console.Analyzer.Tests/Spectre.Console.Analyzer.Tests.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

@@ -10,13 +10,13 @@
1010
</ItemGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.XUnit" Version="1.1.1" />
14-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" Version="1.1.1" />
15-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.8.0" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
17-
<PackageReference Include="Spectre.Console" Version="0.49.1" />
18-
<PackageReference Include="xunit" Version="2.6.6" />
19-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
13+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.3" />
14+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.3" />
15+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.3.0" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
17+
<PackageReference Include="Spectre.Console" Version="0.55.0" />
18+
<PackageReference Include="xunit" Version="2.9.3" />
19+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
<PrivateAssets>all</PrivateAssets>
2222
</PackageReference>

src/Spectre.Console.Analyzer.Tests/SpectreAnalyzerVerifier.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using Microsoft.CodeAnalysis.CSharp.Testing;
2+
13
namespace Spectre.Console.Analyzer.Tests;
24

35
public static class SpectreAnalyzerVerifier<TAnalyzer>
@@ -39,7 +41,7 @@ public static Task VerifyAnalyzerAsync(string source, params DiagnosticResult[]
3941

4042
// Code fix tests support both analyzer and code fix testing. This test class is derived from the code fix test
4143
// to avoid the need to maintain duplicate copies of the customization work.
42-
private class Test : CSharpCodeFixTest<TAnalyzer, EmptyCodeFixProvider, XUnitVerifier>
44+
private class Test : CSharpCodeFixTest<TAnalyzer, EmptyCodeFixProvider, DefaultVerifier>
4345
{
4446
public Test()
4547
{

src/Spectre.Console.Analyzer.Tests/Unit/Analyzers/NoConcurrentLiveRenderablesTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class NoCurrentLiveRenderablesTests
77
DiagnosticSeverity.Warning);
88

99
[Fact]
10-
public async void Status_call_within_live_call_warns()
10+
public async Task Status_call_within_live_call_warns()
1111
{
1212
const string Source = @"
1313
using Spectre.Console;
@@ -28,7 +28,7 @@ await SpectreAnalyzerVerifier<NoConcurrentLiveRenderablesAnalyzer>
2828
}
2929

3030
[Fact]
31-
public async void Status_call_within_live_call_warns_with_instance()
31+
public async Task Status_call_within_live_call_warns_with_instance()
3232
{
3333
const string Source = @"
3434
using Spectre.Console;
@@ -51,7 +51,7 @@ await SpectreAnalyzerVerifier<NoConcurrentLiveRenderablesAnalyzer>
5151
}
5252

5353
[Fact]
54-
public async void Calling_start_on_non_live_renderable_has_no_warning()
54+
public async Task Calling_start_on_non_live_renderable_has_no_warning()
5555
{
5656
const string Source = @"
5757
using Spectre.Console;

src/Spectre.Console.Analyzer.Tests/Unit/Analyzers/UseInstanceAnsiConsoleTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class FavorInstanceAnsiConsoleOverStaticAnalyzerTests
77
DiagnosticSeverity.Info);
88

99
[Fact]
10-
public async void Should_only_warn_within_methods()
10+
public async Task Should_only_warn_within_methods()
1111
{
1212
const string Source = @"
1313
using Spectre.Console;
@@ -28,7 +28,7 @@ await SpectreAnalyzerVerifier<FavorInstanceAnsiConsoleOverStaticAnalyzer>
2828
}
2929

3030
[Fact]
31-
public async void Instance_console_has_no_warnings()
31+
public async Task Instance_console_has_no_warnings()
3232
{
3333
const string Source = @"
3434
using Spectre.Console;
@@ -48,7 +48,7 @@ await SpectreAnalyzerVerifier<FavorInstanceAnsiConsoleOverStaticAnalyzer>
4848
}
4949

5050
[Fact]
51-
public async void Static_console_with_no_instance_variables_has_no_warnings()
51+
public async Task Static_console_with_no_instance_variables_has_no_warnings()
5252
{
5353
const string Source = @"
5454
using Spectre.Console;
@@ -66,7 +66,7 @@ await SpectreAnalyzerVerifier<FavorInstanceAnsiConsoleOverStaticAnalyzer>
6666
}
6767

6868
[Fact]
69-
public async void Console_Write_Has_Warning()
69+
public async Task Console_Write_Has_Warning()
7070
{
7171
const string Source = @"
7272
using Spectre.Console;

src/Spectre.Console.Analyzer.Tests/Unit/Analyzers/UseSpectreInsteadOfSystemConsoleAnalyzerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class UseSpectreInsteadOfSystemConsoleAnalyzerTests
77
DiagnosticSeverity.Warning);
88

99
[Fact]
10-
public async void Non_configured_SystemConsole_methods_report_no_warnings()
10+
public async Task Non_configured_SystemConsole_methods_report_no_warnings()
1111
{
1212
const string Source = @"
1313
using System;
@@ -24,7 +24,7 @@ await SpectreAnalyzerVerifier<UseSpectreInsteadOfSystemConsoleAnalyzer>
2424
}
2525

2626
[Fact]
27-
public async void Console_Write_Has_Warning()
27+
public async Task Console_Write_Has_Warning()
2828
{
2929
const string Source = @"
3030
using System;
@@ -41,7 +41,7 @@ await SpectreAnalyzerVerifier<UseSpectreInsteadOfSystemConsoleAnalyzer>
4141
}
4242

4343
[Fact]
44-
public async void Console_WriteLine_Has_Warning()
44+
public async Task Console_WriteLine_Has_Warning()
4545
{
4646
const string Source = @"
4747
using System;

0 commit comments

Comments
 (0)