Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4696d3d
Update to .NET 10
TheCodeTraveler Oct 7, 2025
40101eb
Merge branch 'main' into Update-to-NET-10
TheCodeTraveler Oct 7, 2025
d438f9c
Update CSharpCodeFixVerifier`2+Test.cs
TheCodeTraveler Oct 7, 2025
fcf2e95
Fix Unit Test
TheCodeTraveler Oct 7, 2025
bfefeb2
Update Verifiers
TheCodeTraveler Oct 7, 2025
7fe076c
Downgrade `Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net`
TheCodeTraveler Oct 7, 2025
fbbcf5d
Keep Compiler Error for `Microsoft.CodeAnalysis.Testing.ReferenceAsse…
TheCodeTraveler Oct 7, 2025
60ccda6
Update Directory.Build.props
TheCodeTraveler Oct 7, 2025
e271c71
Remove AOT
TheCodeTraveler Oct 9, 2025
c4cc7d7
Update to .NET 10 RC 2
TheCodeTraveler Oct 14, 2025
7ad3990
Update NuGet Packages
TheCodeTraveler Oct 14, 2025
a8fffa1
Merge branch 'main' into Update-to-NET-10
TheCodeTraveler Oct 14, 2025
6db0619
Update NuGet packages
TheCodeTraveler Oct 14, 2025
e4f283d
Merge branch 'main' into Update-to-NET-10
TheCodeTraveler Oct 14, 2025
3376442
Merge branch 'main' into Update-to-NET-10
TheCodeTraveler Oct 14, 2025
05a0a11
Remove `[RequiresUnreferencedCode]`
TheCodeTraveler Oct 14, 2025
5f38f13
Remove `<NoWarn>CsWinRT1028`
TheCodeTraveler Oct 14, 2025
e447a65
Increase to JDK 21
TheCodeTraveler Oct 15, 2025
8c9402b
Merge branch 'main' into Update-to-NET-10
TheCodeTraveler Oct 23, 2025
f8febd1
Remove `NextMauiPackageVersion`
TheCodeTraveler Oct 23, 2025
c029aa3
sample apps builds
ne0rrmatrix Oct 25, 2025
8f49d50
Update for .NET MAUI compatibility and .NET 10 support
ne0rrmatrix Oct 25, 2025
7827462
Temp fix for `AllowMissingPrunePackageData` to true
ne0rrmatrix Oct 25, 2025
8710216
Add `AllowMissingPrunePackageData` to resolve issues. This will need …
ne0rrmatrix Oct 25, 2025
989d5e9
Fix Tizen `IDisposable` in CamerViewHandler
ne0rrmatrix Oct 25, 2025
6cbf841
Fix Tizen?
ne0rrmatrix Oct 25, 2025
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
4 changes: 2 additions & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '*'

env:
LATEST_NET_VERSION: '9.0.x'
LATEST_NET_VERSION: '10.0.x'
PathToCommunityToolkitAnalyzersBenchmarkCsproj: 'src/CommunityToolkit.Maui.Analyzers.Benchmarks/CommunityToolkit.Maui.Analyzers.Benchmarks.csproj'

concurrency:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.LATEST_NET_VERSION }}
dotnet-quality: 'ga'
dotnet-quality: 'preview'

- name: Install .NET MAUI Workload
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ env:
NugetPackageVersionCamera: '99.0.0-preview${{ github.run_number }}'
NugetPackageVersionMediaElement: '99.0.0-preview${{ github.run_number }}'
NugetPackageVersionMaps: '99.0.0-preview${{ github.run_number }}'
TOOLKIT_NET_VERSION: '9.0.306'
LATEST_NET_VERSION: '9.0.x'
TOOLKIT_NET_VERSION: '10.0.x'
LATEST_NET_VERSION: '10.0.x'
PathToLibrarySolution: 'src/CommunityToolkit.Maui.sln'
PathToSamplesSolution: 'samples/CommunityToolkit.Maui.Sample.sln'
PathToCommunityToolkitCsproj: 'src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj'
Expand Down Expand Up @@ -71,12 +71,12 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.LATEST_NET_VERSION }}
dotnet-quality: 'ga'
dotnet-quality: 'preview'

- uses: actions/setup-java@v5
with:
distribution: 'microsoft'
java-version: '17'
java-version: '21'

- name: Install .NET MAUI Workload
run: |
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.TOOLKIT_NET_VERSION }}
dotnet-quality: 'ga'
dotnet-quality: 'preview'

- uses: actions/setup-java@v5
with:
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.TOOLKIT_NET_VERSION }}
dotnet-quality: 'ga'
dotnet-quality: 'preview'

- name: Download NuGet List
uses: actions/download-artifact@v5
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.TOOLKIT_NET_VERSION }}
dotnet-quality: 'ga'
dotnet-quality: 'preview'

- name: Download signed packages
uses: actions/download-artifact@v5
Expand Down Expand Up @@ -373,7 +373,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.TOOLKIT_NET_VERSION }}
dotnet-quality: 'ga'
dotnet-quality: 'preview'

- name: Download signed packages
uses: actions/download-artifact@v5
Expand Down
9 changes: 4 additions & 5 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<NoWarn>NETSDK1023</NoWarn>
<NetVersion>net9.0</NetVersion>
<NoWarn>NETSDK1023;XCODE_26_0_PREVIEW</NoWarn>
<NetVersion>net10.0</NetVersion>
<LangVersion>preview</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
Expand All @@ -16,8 +16,7 @@
<NuGetAuditMode>all</NuGetAuditMode>

<!-- MAUI Specific -->
<MauiPackageVersion>9.0.120</MauiPackageVersion>
<NextMauiPackageVersion>10.0.0</NextMauiPackageVersion>
<MauiPackageVersion>10.0.0-rc.2.25504.7</MauiPackageVersion>
<MauiStrictXamlCompilation>true</MauiStrictXamlCompilation>
<SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
Expand Down Expand Up @@ -203,7 +202,7 @@
IL2090,IL2091,IL2092,IL2093,IL2094,IL2095,IL2096,IL2097,IL2098,IL2099,
IL2100,IL2101,IL2102,IL2103,IL2104,IL2105,IL2106,IL2107,IL2108,IL2109,
IL2110,IL2111,IL2112,IL2113,IL2114,IL2115,IL2116,IL2117,IL2118,IL2119,
IL2120,IL2121,IL2122,
IL2120,IL2121,IL2122,IL2123,
IL3050,IL3051,IL3052,IL3053,IL3054,IL3055,IL3056,
RS1038,RS2007
</WarningsAsErrors>
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "9.0.306",
"version": "10.0.100-rc.2.25502.107",
"rollForward": "latestFeature",
"allowPrerelease": false
"allowPrerelease": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<OutputType>Exe</OutputType>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<AllowMissingPrunePackageData>true</AllowMissingPrunePackageData>

<RootNamespace>CommunityToolkit.Maui.Sample</RootNamespace>

Expand All @@ -31,18 +32,15 @@

<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<!-- Remove this NoWarn once XamlTypeInfo Generator (owned by .NET MAUI Engineering Team) implements a partial class-->
<NoWarn>CsWinRT1028</NoWarn>
<NoWarn>IL2026</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'
AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'tizen'
AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'android'
AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">
<!-- Ahead-of-time compilation is not yet supported net8.0-tizen -->
<!-- Cross-OS native compilation is not supported net8.0-android -->
<!-- Only iOS + MacCatalyst support AOT in .NET 9 -->
<PublishAot>true</PublishAot>
AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">
<!-- Windows error NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. -->
<PublishAot>false</PublishAot>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>partial</TrimMode>
</PropertyGroup>

<ItemGroup>
Expand All @@ -63,11 +61,11 @@
<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />

<PackageReference Include="Microsoft.Maui.Controls" Version="*" />
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.0-rc.2.25502.107" />
<PackageReference Include="CommunityToolkit.Maui.Markup" Version="6.0.1" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="9.10.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.10" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.0-rc.2.25502.107" />
</ItemGroup>

<PropertyGroup>
Expand Down
4 changes: 1 addition & 3 deletions samples/CommunityToolkit.Maui.Sample/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ namespace CommunityToolkit.Maui.Sample;

public static class MauiProgram
{
[RequiresUnreferencedCode($"{nameof(CommunityToolkit.Maui.Views.Expander)} and {nameof(TouchBehaviorCollectionViewMultipleSelectionPage)} are not type safe")]
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder()
Expand Down Expand Up @@ -135,8 +134,7 @@ public static MauiApp CreateMauiApp()

return builder.Build();
}

[RequiresUnreferencedCode("Calls CommunityToolkit.Maui.Sample.MauiProgram.AddTransientWithShellRoute<TPage, TViewModel>()")]

static void RegisterViewsAndViewModels(in IServiceCollection services)
{
// Add Gallery Pages + ViewModels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@

namespace CommunityToolkit.Maui.Sample.Pages.Behaviors;

[RequiresUnreferencedCode("Calls CommunityToolkit.Maui.Markup.BindableObjectExtensions.Bind<TBindable>(BindableProperty, String, BindingMode, IValueConverter, Object, String, Object, Object, Object)")]
public partial class TouchBehaviorCollectionViewMultipleSelectionPage : BasePage<TouchBehaviorCollectionViewMultipleSelectionViewModel>
{
readonly CollectionView collectionView;

public TouchBehaviorCollectionViewMultipleSelectionPage(TouchBehaviorCollectionViewMultipleSelectionViewModel viewModel) : base(viewModel)
{
Content = new VerticalStackLayout
Expand All @@ -37,12 +36,9 @@ async void HandleSelectionChanged(object? sender, SelectionChangedEventArgs e)
{
await Toast.Make($"Number of Creators Selected: {collectionView.SelectedItems?.Count ?? 0}").Show();
}


[RequiresUnreferencedCode("Calls CommunityToolkit.Maui.Markup.BindableObjectExtensions.Bind<TBindable>(BindableProperty, String, BindingMode, IValueConverter, Object, String, Object, Object, Object)")]

sealed class CreatorsDataTemplate(TouchBehaviorCollectionViewMultipleSelectionViewModel viewModel) : DataTemplate(() => CreateLayout(viewModel))
{
[RequiresUnreferencedCode("Calls CommunityToolkit.Maui.Markup.BindableObjectExtensions.Bind<TBindable>(BindableProperty, String, BindingMode, IValueConverter, Object, String, Object, Object, Object)")]
static VerticalStackLayout CreateLayout(TouchBehaviorCollectionViewMultipleSelectionViewModel viewModel) => new VerticalStackLayout
{
Children =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public IsInRangeConverterPage(IsInRangeConverterViewModel viewModel) : base(view
.Row(Row.TimeSpanExample1).Column(Column.Result)
.TextCenter()
.Bind<Label, TimePicker, TimeSpan, TimeSpan>(Label.StyleProperty,
static (TimePicker timeSpanInputPicker) => timeSpanInputPicker.Time,
static (TimePicker timeSpanInputPicker) => timeSpanInputPicker.Time ?? TimeSpan.Zero,
mode: BindingMode.OneWay,
converter: new IsInRangeConverter
{
Expand All @@ -255,7 +255,7 @@ public IsInRangeConverterPage(IsInRangeConverterViewModel viewModel) : base(view
.TextCenter()
.Bind<Label, TimePicker, TimeSpan, TimeSpan>(
Label.StyleProperty,
static (TimePicker timeSpanInputPicker) => timeSpanInputPicker.Time,
static (TimePicker timeSpanInputPicker) => timeSpanInputPicker.Time ?? TimeSpan.Zero,
mode: BindingMode.OneWay,
converter: new IsInRangeConverter
{
Expand All @@ -274,7 +274,7 @@ public IsInRangeConverterPage(IsInRangeConverterViewModel viewModel) : base(view
.TextCenter()
.Bind<Label, TimePicker, TimeSpan, TimeSpan>(
Label.StyleProperty,
static (TimePicker timeSpanInputPicker) => timeSpanInputPicker.Time,
static (TimePicker timeSpanInputPicker) => timeSpanInputPicker.Time ?? TimeSpan.Zero,
mode: BindingMode.OneWay,
converter: new IsInRangeConverter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace CommunityToolkit.Maui.Sample.Pages;

public class PlatformSpecificGalleryPage(IDeviceInfo deviceInfo, PlatformSpecificGalleryViewModel viewModel) : BaseGalleryPage<PlatformSpecificGalleryViewModel>("Platform Specific", deviceInfo, viewModel)
public partial class PlatformSpecificGalleryPage(IDeviceInfo deviceInfo, PlatformSpecificGalleryViewModel viewModel) : BaseGalleryPage<PlatformSpecificGalleryViewModel>("Platform Specific", deviceInfo, viewModel)
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace CommunityToolkit.Maui.Sample.Pages.Views;

[RequiresUnreferencedCode("Expander is not trim safe")]
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]
public partial class ExpanderPage : BasePage<ExpanderViewModel>
{
public ExpanderPage(ExpanderViewModel viewModel) : base(viewModel)
Expand All @@ -18,7 +16,7 @@ async void Expander_ExpandedChanged(object sender, Core.ExpandedChangedEventArgs
var collapsedText = e.IsExpanded ? "expanded" : "collapsed";
await Toast.Make($"Expander is {collapsedText}").Show(CancellationToken.None);
}

async void GoToCSharpSampleClicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new ExpanderPageCS());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

namespace CommunityToolkit.Maui.Sample.Pages.Views;

[RequiresUnreferencedCode("Expander is not trim safe")]
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]
public partial class ExpanderPageCS : ContentPage
{
public ExpanderPageCS()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace CommunityToolkit.Maui.Sample.Pages.Views.Popup;

public class PopupOnDisappearingPage : ContentPage
public partial class PopupOnDisappearingPage : ContentPage
{
public PopupOnDisappearingPage()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace CommunityToolkit.Maui.Sample.Pages.Views;

public class RatingViewCsharpPage : BasePage<RatingViewCsharpViewModel>
public partial class RatingViewCsharpPage : BasePage<RatingViewCsharpViewModel>
{
public RatingViewCsharpPage(RatingViewCsharpViewModel viewModel) : base(viewModel)
{
Expand Down Expand Up @@ -798,7 +798,7 @@ static async void HandleRatingChanged(object? sender, RatingChangedEventArgs e)
await Toast.Make($"New Rating: {ratingView.Rating:F2}").Show(CancellationToken.None);
}

sealed class SectionHeader : Grid
sealed partial class SectionHeader : Grid
{
public const int RequestedHeight = (separatorRowHeight * 2) + titleHeight;
const int separatorRowHeight = 8;
Expand Down Expand Up @@ -827,7 +827,7 @@ enum SectionHeaderRow { TopSeparator, Title, BottomSeparator }
}.Center().AppThemeBinding(Line.StrokeProperty, Colors.Black, Colors.White);
}

sealed class TitleLabel : Label
sealed partial class TitleLabel : Label
{
public TitleLabel(in string text)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
namespace CommunityToolkit.Maui.Sample;

[Register(nameof(AppDelegate))]
[RequiresUnreferencedCode($"{nameof(MauiProgram.CreateMauiApp)} requires unreferenced code")]
public class AppDelegate : MauiUIApplicationDelegate
{
#pragma warning disable IL2046
[RequiresUnreferencedCode($"{nameof(MauiProgram.CreateMauiApp)} requires unreferenced code")]
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
#pragma warning restore IL2046
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
namespace CommunityToolkit.Maui.Sample;

[Register(nameof(AppDelegate))]
[RequiresUnreferencedCode($"{nameof(MauiProgram.CreateMauiApp)} requires unreferenced code")]
public class AppDelegate : MauiUIApplicationDelegate
{
#pragma warning disable IL2046
[RequiresUnreferencedCode($"{nameof(MauiProgram.CreateMauiApp)} requires unreferenced code")]
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
#pragma warning restore IL2046
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0-2.final" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0-2.final" />
</ItemGroup>

<ItemGroup>
<!--Fix vulnerabilities-->
<PackageReference Include="System.Formats.Asn1" Version="9.0.10" />
<PackageReference Include="System.Formats.Asn1" Version="10.0.0-rc.2.25502.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" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
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 NET9
ReferenceAssemblies = Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net90;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also update net10 here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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. Microsoft.CodeAnalysis.Testing.ReferenceAssemblys.Net.Net100 hasn't yet been released.

For now, the Analyzer tests all fail.

I assume (hope) Microsoft will push support for this before .NET 10 GAs.

#elif NET10
ReferenceAssemblies = Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net10;
#else
#error ReferenceAssemblies must be updated to current version of .NET

Check failure on line 18 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpAnalyzerVerifier`1+Test.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (macos-15)

#error: 'ReferenceAssemblies must be updated to current version of .NET'

Check failure on line 18 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpAnalyzerVerifier`1+Test.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (windows-latest)

#error: 'ReferenceAssemblies must be updated to current version of .NET'

Check failure on line 18 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpAnalyzerVerifier`1+Test.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

#error: 'ReferenceAssemblies must be updated to current version of .NET'

Check failure on line 18 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpAnalyzerVerifier`1+Test.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

#error: 'ReferenceAssemblies must be updated to current version of .NET'
#endif
List<Type> typesForAssembliesUnderTest =
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
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 NET9
ReferenceAssemblies = Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net90;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference assemblies net10?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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. Microsoft.CodeAnalysis.Testing.ReferenceAssemblys.Net.Net100 hasn't yet been released.

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

Check failure on line 19 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpCodeFixVerifier`2+Test.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (macos-15)

#error: 'ReferenceAssemblies must be updated to current version of .NET'

Check failure on line 19 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpCodeFixVerifier`2+Test.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (windows-latest)

#error: 'ReferenceAssemblies must be updated to current version of .NET'

Check failure on line 19 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpCodeFixVerifier`2+Test.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

#error: 'ReferenceAssemblies must be updated to current version of .NET'

Check failure on line 19 in src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpCodeFixVerifier`2+Test.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

#error: 'ReferenceAssemblies must be updated to current version of .NET'
#endif
List<Type> typesForAssembliesUnderTest =
[
Expand Down
Loading
Loading