-
Notifications
You must be signed in to change notification settings - Fork 463
Add .NET 10 Support #2902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add .NET 10 Support #2902
Changes from 6 commits
4696d3d
40101eb
d438f9c
fcf2e95
bfefeb2
7fe076c
fbbcf5d
60ccda6
e271c71
c4cc7d7
7ad3990
a8fffa1
6db0619
e4f283d
3376442
05a0a11
5f38f13
e447a65
8c9402b
f8febd1
c029aa3
8f49d50
7827462
8710216
989d5e9
6cbf841
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "sdk": { | ||
| "version": "9.0.300", | ||
| "version": "10.0.100-rc.1.25451.107", | ||
| "rollForward": "latestFeature", | ||
| "allowPrerelease": false | ||
| "allowPrerelease": true | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,13 +20,13 @@ | |
| <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.2" /> | ||
| <PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.2" /> | ||
| <PackageReference Include="xunit.v3" Version="3.1.0" /> | ||
| <PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.0.4" /> | ||
| <PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0-preview.25412.3" /> | ||
| <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <!--Fix vulnerabilities--> | ||
| <PackageReference Include="System.Formats.Asn1" Version="9.0.9" /> | ||
| <PackageReference Include="System.Formats.Asn1" Version="10.0.0-rc.1.25451.107" /> | ||
|
||
| <PackageReference Include="System.Net.Http" Version="4.3.4" /> | ||
| <PackageReference Include="System.Private.Uri" Version="4.3.2" /> | ||
| <PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,11 +6,11 @@ namespace CommunityToolkit.Maui.Analyzers.UnitTests; | |
| public static partial class CSharpAnalyzerVerifier<TAnalyzer> | ||
| where TAnalyzer : DiagnosticAnalyzer, new() | ||
| { | ||
| public class Test : CSharpAnalyzerTest<TAnalyzer, Microsoft.CodeAnalysis.Testing.DefaultVerifier> | ||
| class Test : CSharpAnalyzerTest<TAnalyzer, Microsoft.CodeAnalysis.Testing.DefaultVerifier> | ||
| { | ||
| public Test(params ReadOnlySpan<Type> assembliesUnderTest) | ||
| { | ||
| #if NET9_0 | ||
| #if NET10_0 | ||
| ReferenceAssemblies = Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net90; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we also update net10 here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup! We're waiting on Microsoft to release support for testing Analyzers with .NET 10. For now, the Analyzer tests all fail. I assume (hope) Microsoft will push support for this before .NET 10 GAs. |
||
| #else | ||
| #error ReferenceAssemblies must be updated to current version of .NET | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,11 +9,11 @@ public static partial class CSharpCodeFixVerifier<TAnalyzer, TCodeFix> | |
| where TAnalyzer : DiagnosticAnalyzer, new() | ||
| where TCodeFix : CodeFixProvider, new() | ||
| { | ||
| protected class Test : CSharpCodeFixTest<TAnalyzer, TCodeFix, DefaultVerifier> | ||
| class Test : CSharpCodeFixTest<TAnalyzer, TCodeFix, DefaultVerifier> | ||
| { | ||
| public Test(params ReadOnlySpan<Type> assembliesUnderTest) | ||
| { | ||
| #if NET9_0 | ||
| #if NET10_0 | ||
| ReferenceAssemblies = Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net90; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reference assemblies net10? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup! We're waiting on Microsoft to release support for testing Analyzers with .NET 10. For now, the Analyzer tests all fail. I assume (hope) Microsoft will push support for this before .NET 10 GAs. |
||
| #else | ||
| #error ReferenceAssemblies must be updated to current version of .NET | ||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.