Skip to content
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

Run device tests on the previous TFMs #23896

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
50c4471
[release/9.0.1xx-preview7] Bump to latest 8.0.1xx-sr7 (#23947)
dalexsoto Jul 31, 2024
a4372f8
Build the previous TFMs
mattleibow Jul 22, 2024
219b63c
:)
mattleibow Jul 29, 2024
bc37ffc
cleanup
mattleibow Jul 29, 2024
8475e43
fix sample TFMs
mattleibow Jul 30, 2024
e0ba5c1
this
mattleibow Jul 31, 2024
394c399
tests
mattleibow Jul 31, 2024
efd6b60
disable tizen for now on net8.0 TFMs
mattleibow Aug 1, 2024
50fcb5d
MauiPackageVersion
mattleibow Aug 1, 2024
4814b46
almost
mattleibow Aug 1, 2024
b6e1b5b
remove it
mattleibow Aug 5, 2024
4d5992f
pranks
mattleibow Aug 5, 2024
9236f72
this
mattleibow Aug 6, 2024
430fab5
net8 things
mattleibow Aug 6, 2024
af6ba32
warns
mattleibow Aug 6, 2024
0a34a74
Add more tests
mattleibow Aug 6, 2024
77a98a6
Add more tests
mattleibow Aug 6, 2024
1bd248b
this
mattleibow Aug 6, 2024
9e8f47c
gone
mattleibow Aug 6, 2024
31dcdbb
this
mattleibow Aug 6, 2024
0fcb763
this
mattleibow Aug 6, 2024
3a7e62f
else
mattleibow Aug 6, 2024
5d9e0e5
deps
mattleibow Aug 6, 2024
80a41aa
deps
mattleibow Aug 6, 2024
588024d
tfwv
mattleibow Aug 6, 2024
950c54c
skip 23 for now as it always fails
mattleibow Aug 6, 2024
5fdba91
oops
mattleibow Aug 7, 2024
73d255b
TFMs
mattleibow Aug 7, 2024
4d17522
this one got away
mattleibow Aug 7, 2024
2dd7742
things
mattleibow Aug 7, 2024
24d432f
they tricked me
mattleibow Aug 7, 2024
70544ae
Remove xcsync as it is too big for CI
mattleibow Aug 8, 2024
5f91f8a
Merge branch 'dev/merge-pre7-into-net9' into dev/net8-in-net9
mattleibow Aug 8, 2024
e4224c7
Merge branch 'dev/merge-pre7-into-net9' into dev/net8-in-net9
mattleibow Aug 8, 2024
37457cf
Merge remote-tracking branch 'origin/net9.0' into dev/net8-in-net9
mattleibow Aug 12, 2024
e6761a3
Merge remote-tracking branch 'origin/net9.0' into dev/net8-in-net9
mattleibow Aug 12, 2024
5e73cce
Merge remote-tracking branch 'origin/net9.0' into dev/net8-in-net9
mattleibow Aug 16, 2024
cea4246
Merge branch 'net9.0' into dev/net8-in-net9
mattleibow Aug 20, 2024
b0b7127
Merge remote-tracking branch 'origin/net9.0' into dev/net8-in-net9
mattleibow Aug 21, 2024
3ae3677
skip
mattleibow Aug 21, 2024
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
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>

<!--
<!--
Disable generation of obj/Debug/net8.0-android/__Microsoft.Android.Resource.Designer.cs
Enable this individually in projects that declare/use AndroidResource IDs.
-->
Expand Down
45 changes: 45 additions & 0 deletions eng/NuGetVersions.targets
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,51 @@
Update="Microsoft.JSInterop"
Version="$(MicrosoftJSInteropPackageVersion)"
/>
<PackageReference
Update="Microsoft.AspNetCore.Authorization"
Version="$(MicrosoftAspNetCoreAuthorizationPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.AspNetCore.Authentication.Google"
Version="$(MicrosoftAspNetCoreAuthenticationGooglePreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.AspNetCore.Authentication.Facebook"
Version="$(MicrosoftAspNetCoreAuthenticationFacebookPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.AspNetCore.Authentication.MicrosoftAccount"
Version="$(MicrosoftAspNetCoreAuthenticationMicrosoftAccountPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.AspNetCore.Components.WebView"
Version="$(MicrosoftAspNetCoreComponentsWebViewPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.AspNetCore.Components.Web"
Version="$(MicrosoftAspNetCoreComponentsWebPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.AspNetCore.Components.WebAssembly"
Version="$(MicrosoftAspNetCoreComponentsWebAssemblyPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.AspNetCore.Components.WebAssembly.Server"
Version="$(MicrosoftAspNetCoreComponentsWebAssemblyServerPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="Microsoft.JSInterop"
Version="$(MicrosoftJSInteropPreviousPackageVersion)"
Condition="$(TargetFramework.StartsWith('$(_MauiPreviousDotNetTfm)'))"
/>
<PackageReference
Update="System.Text.Json"
Version="$(SystemTextJsonPackageVersion)"
Expand Down
17 changes: 16 additions & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</PropertyGroup>
<PropertyGroup>
<!-- Current previous .NET SDK major version's stable release of MAUI packages -->
<MicrosoftMauiPreviousDotNetReleasedVersion>8.0.70</MicrosoftMauiPreviousDotNetReleasedVersion>
<MicrosoftMauiPreviousDotNetReleasedVersion>8.0.71</MicrosoftMauiPreviousDotNetReleasedVersion>
<!-- dotnet/installer -->
<VSToolsNetCoreSDKResolverPackageVersion>9.0.100-preview.7.24379.15</VSToolsNetCoreSDKResolverPackageVersion>
<MicrosoftDotnetSdkInternalPackageVersion>$(VSToolsNetCoreSDKResolverPackageVersion)</MicrosoftDotnetSdkInternalPackageVersion>
Expand Down Expand Up @@ -79,6 +79,21 @@
<MicrosoftAspNetCoreComponentsWebViewPackageVersion>9.0.0-preview.7.24379.2</MicrosoftAspNetCoreComponentsWebViewPackageVersion>
<MicrosoftAspNetCoreMetadataPackageVersion>9.0.0-preview.7.24379.2</MicrosoftAspNetCoreMetadataPackageVersion>
<MicrosoftJSInteropPackageVersion>9.0.0-preview.7.24379.2</MicrosoftJSInteropPackageVersion>
<!-- Everything else (previous edition) -->
<MicrosoftAspNetCorePackageVersion>8.0.7</MicrosoftAspNetCorePackageVersion>
<MicrosoftAspNetCoreAuthorizationPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreAuthorizationPreviousPackageVersion>
<MicrosoftAspNetCoreAuthenticationFacebookPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreAuthenticationFacebookPreviousPackageVersion>
<MicrosoftAspNetCoreAuthenticationGooglePreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreAuthenticationGooglePreviousPackageVersion>
<MicrosoftAspNetCoreAuthenticationMicrosoftAccountPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreAuthenticationMicrosoftAccountPreviousPackageVersion>
<MicrosoftAspNetCoreComponentsAnalyzersPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreComponentsAnalyzersPreviousPackageVersion>
<MicrosoftAspNetCoreComponentsFormsPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreComponentsFormsPreviousPackageVersion>
<MicrosoftAspNetCoreComponentsPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreComponentsPreviousPackageVersion>
<MicrosoftAspNetCoreComponentsWebPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreComponentsWebPreviousPackageVersion>
<MicrosoftAspNetCoreComponentsWebAssemblyPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreComponentsWebAssemblyPreviousPackageVersion>
<MicrosoftAspNetCoreComponentsWebAssemblyServerPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreComponentsWebAssemblyServerPreviousPackageVersion>
<MicrosoftAspNetCoreComponentsWebViewPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreComponentsWebViewPreviousPackageVersion>
<MicrosoftAspNetCoreMetadataPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftAspNetCoreMetadataPreviousPackageVersion>
<MicrosoftJSInteropPreviousPackageVersion>$(MicrosoftAspNetCorePackageVersion)</MicrosoftJSInteropPreviousPackageVersion>
<!-- Other packages -->
<MicrosoftCodeAnalysisNetAnalyzersVersion>9.0.0-preview*</MicrosoftCodeAnalysisNetAnalyzersVersion>
<MicrosoftCodeAnalysisPublicApiAnalyzersVersion>3.3.4</MicrosoftCodeAnalysisPublicApiAnalyzersVersion>
Expand Down
11 changes: 11 additions & 0 deletions eng/pipelines/common/maui-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ jobs:
- pwsh: Move-Item -Path artifacts\${{ parameters.artifactName }}\*.nupkg -Destination artifacts -Force
displayName: Move the downloaded artifacts

- pwsh: |
Get-ChildItem artifacts -Filter 'Microsoft.Maui.Controls.*.nupkg' | Where-Object { $_.Name -match '^Microsoft\.Maui\.Controls\.([\d\.]+.*)\.nupkg$' }
$version = $Matches.1
if (!$version) {
Write-Error "Failed to extract the version from the nupkgs"
exit 1
}
Write-Host "Found .NET MAUI version (MAUI_PACKAGE_VERSION): $version"
Write-Host "##vso[task.setvariable variable=MAUI_PACKAGE_VERSION]$version"
displayName: Read the .NET MAUI version from the nugets

- pwsh: ./build.ps1 --target=dotnet-local-workloads --verbosity=diagnostic
displayName: 'Install .NET (Local Workloads)'
retryCountOnTaskFailure: 3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>$(_MauiDotNetTfm)</TargetFramework>
<TargetFrameworks>$(_MauiDotNetTfm);$(_MauiPreviousDotNetTfm)</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

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

<PropertyGroup>
<TargetFrameworks>$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<Nullable>enable</Nullable>
<DefineConstants>$(DefineConstants);WEBVIEW2_MAUI</DefineConstants>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
namespace Microsoft.Maui.Controls.Compatibility.Platform.Android.AppCompat
{
[System.Obsolete]
internal class FormsFragmentPagerAdapter<[DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers)] T> : FragmentPagerAdapter where T : Page
internal class FormsFragmentPagerAdapter<[DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers
#if NET8_0 // IL2091
| BindableProperty.ReturnTypeMembers
#endif
)] T> : FragmentPagerAdapter where T : Page
{
MultiPage<T> _page;
FragmentManager _fragmentManager;
Expand Down
2 changes: 1 addition & 1 deletion src/Compatibility/Core/src/Compatibility.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<RootNamespace>Microsoft.Maui.Controls.Compatibility</RootNamespace>
<AssemblyName>Microsoft.Maui.Controls.Compatibility</AssemblyName>
<Nullable>disable</Nullable>
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/Foldable/src/Controls.Foldable.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<AssemblyName>Microsoft.Maui.Controls.Foldable</AssemblyName>
<RootNamespace>Microsoft.Maui.Controls.Foldable</RootNamespace>
<WarningsNotAsErrors>BI1234</WarningsNotAsErrors>
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/Maps/src/Controls.Maps.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<AssemblyName>Microsoft.Maui.Controls.Maps</AssemblyName>
<RootNamespace>Microsoft.Maui.Controls.Maps</RootNamespace>
<IsTrimmable>false</IsTrimmable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFrameworks>$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks Condition=" '$(UseMaui)' != 'true' ">$(TargetFrameworks);$(MauiPreviousPlatforms)</TargetFrameworks>
<OutputType>Exe</OutputType>
<SingleProject>true</SingleProject>
<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<PropertyGroup>
<TargetFrameworks>$(MauiPlatforms);$(_MauiDotNetTfm)</TargetFrameworks>
<TargetFrameworks Condition=" '$(UseMaui)' != 'true' ">$(TargetFrameworks);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<OutputType Condition="$(TargetFramework.Contains('-'))">Exe</OutputType>
<SingleProject>true</SingleProject>
<RootNamespace>Maui.Controls.Sample</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ DataTemplate DefaultTemplate
if (RuntimeFeature.IsShellSearchResultsRendererDisplayMemberNameSupported)
{
#pragma warning disable CS0618
#if NET8_0
#pragma warning disable IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
label.SetBinding(Label.TextProperty, _searchHandler.DisplayMemberName ?? ".");
mattleibow marked this conversation as resolved.
Show resolved Hide resolved
#if NET8_0
#pragma warning restore IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
#pragma warning restore CS0618
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ DataTemplate DefaultTemplate
if (RuntimeFeature.IsShellSearchResultsRendererDisplayMemberNameSupported)
{
#pragma warning disable CS0618
#if NET8_0
#pragma warning disable IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
label.SetBinding(Label.TextProperty, SearchHandler.DisplayMemberName ?? ".");
#if NET8_0
#pragma warning restore IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
#pragma warning restore CS0618
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Controls.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<RootNamespace>Microsoft.Maui.Controls</RootNamespace>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

namespace Microsoft.Maui.Controls.Platform
{
internal class MultiPageFragmentStateAdapter<[DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers)] T> : FragmentStateAdapter where T : Page
internal class MultiPageFragmentStateAdapter<[DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers
#if NET8_0 // IL2091
| BindableProperty.ReturnTypeMembers
#endif
)] T> : FragmentStateAdapter where T : Page
{
MultiPage<T> _page;
readonly IMauiContext _context;
Expand Down
6 changes: 6 additions & 0 deletions src/Controls/src/Core/TypeConversionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ internal static bool TryConvert(object value, Type targetType, out object? conve

if (RuntimeFeature.IsImplicitCastOperatorsUsageViaReflectionSupported)
{
#if NET8_0
#pragma warning disable IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
if (TryConvertUsingImplicitCastOperator(value, targetType, out convertedValue))
#if NET8_0
#pragma warning restore IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
{
return true;
}
Expand Down
6 changes: 6 additions & 0 deletions src/Controls/src/Core/Visuals/VisualTypeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ void InitMappings()

if (RuntimeFeature.IsIVisualAssemblyScanningEnabled)
{
#if NET8_0
#pragma warning disable IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
ScanAllAssemblies(mappings);
#if NET8_0
#pragma warning restore IL2026 // FeatureGuardAttribute is not supported on .NET 8
#endif
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/NuGet/Controls.NuGet.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<!-- Suppresses the warnings about the package not having assemblies in lib/*/.dll.-->
<NoPackageAnalysis>true</NoPackageAnalysis>
<!-- Do not include any assemblies from this project as it is a "meta" project -->
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/src/Xaml/Controls.Xaml.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<AssemblyName>Microsoft.Maui.Controls.Xaml</AssemblyName>
<RootNamespace>Microsoft.Maui.Controls.Xaml</RootNamespace>
<IsTrimmable>false</IsTrimmable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFrameworks>$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks Condition=" '$(UseMaui)' != 'true' ">$(TargetFrameworks);$(MauiPreviousPlatforms)</TargetFrameworks>
<OutputType>Exe</OutputType>
<SingleProject>true</SingleProject>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/maps/src/Maps.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<RootNamespace>Microsoft.Maui.Maps</RootNamespace>
<AssemblyName>Microsoft.Maui.Maps</AssemblyName>
<Nullable>enable</Nullable>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms);$(_MauiPreviousDotNetTfm);$(MauiPreviousPlatforms)</TargetFrameworks>
<RootNamespace>Microsoft.Maui</RootNamespace>
<AssemblyName>Microsoft.Maui</AssemblyName>
<Nullable>enable</Nullable>
Expand Down
6 changes: 6 additions & 0 deletions src/Core/src/Platform/iOS/LabelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ internal static void UpdateTextHtml(this UILabel platformLabel, ILabel label)
var attr = new NSAttributedStringDocumentAttributes
{
DocumentType = NSDocumentType.HTML,
#if NET9_0_OR_GREATER
CharacterEncoding = NSStringEncoding.UTF8
#else
#pragma warning disable CS0618 // 'NSAttributedStringDocumentAttributes.StringEncoding' is obsolete: 'Use 'CharacterEncoding' instead.
StringEncoding = NSStringEncoding.UTF8
#pragma warning restore CS0618 // 'NSAttributedStringDocumentAttributes.StringEncoding' is obsolete: 'Use 'CharacterEncoding' instead.
#endif
};

NSError nsError = new();
Expand Down
8 changes: 4 additions & 4 deletions src/Core/src/RuntimeFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal static class RuntimeFeature
private const bool AreBindingInterceptorsSupportedByDefault = true;

#pragma warning disable IL4000 // Return value does not match FeatureGuardAttribute 'System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute'.
#if !NETSTANDARD
#if NET9_0_OR_GREATER
[FeatureSwitchDefinition("Microsoft.Maui.RuntimeFeature.IsIVisualAssemblyScanningEnabled")]
[FeatureGuard(typeof(RequiresUnreferencedCodeAttribute))]
#endif
Expand All @@ -30,7 +30,7 @@ internal static class RuntimeFeature
? isEnabled
: IsIVisualAssemblyScanningEnabledByDefault;

#if !NETSTANDARD
#if NET9_0_OR_GREATER
[FeatureSwitchDefinition("Microsoft.Maui.RuntimeFeature.IsShellSearchResultsRendererDisplayMemberNameSupported")]
[FeatureGuard(typeof(RequiresUnreferencedCodeAttribute))]
#endif
Expand All @@ -39,7 +39,7 @@ internal static bool IsShellSearchResultsRendererDisplayMemberNameSupported
? isSupported
: IsShellSearchResultsRendererDisplayMemberNameSupportedByDefault;

#if !NETSTANDARD
#if NET9_0_OR_GREATER
[FeatureSwitchDefinition("Microsoft.Maui.RuntimeFeature.IsQueryPropertyAttributeSupported")]
[FeatureGuard(typeof(RequiresUnreferencedCodeAttribute))]
#endif
Expand All @@ -48,7 +48,7 @@ internal static bool IsShellSearchResultsRendererDisplayMemberNameSupported
? isSupported
: IsQueryPropertyAttributeSupportedByDefault;

#if !NETSTANDARD
#if NET9_0_OR_GREATER
[FeatureSwitchDefinition("Microsoft.Maui.RuntimeFeature.IsImplicitCastOperatorsUsageViaReflectionSupported")]
[FeatureGuard(typeof(RequiresUnreferencedCodeAttribute))]
#endif
Expand Down
1 change: 1 addition & 0 deletions src/Essentials/samples/Samples/Essentials.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFrameworks>$(MauiPlatforms)</TargetFrameworks>
<TargetFrameworks Condition=" '$(UseMaui)' != 'true' ">$(TargetFrameworks);$(MauiPreviousPlatforms)</TargetFrameworks>
<RootNamespace>Maui.Essentials.Sample</RootNamespace>
<AssemblyName>Microsoft.Maui.Essentials.Sample</AssemblyName>
<OutputType>Exe</OutputType>
Expand Down
15 changes: 13 additions & 2 deletions src/TestUtils/src/Microsoft.Maui.IntegrationTests/BaseBuildTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@ public class BaseBuildTest
public const string DotNetCurrent = "net9.0";
public const string DotNetPrevious = "net8.0";

public const string MauiVersionCurrent = "8.0.0-rc.2.9530"; // this should not be the same as the last release
public const string MauiVersionPrevious = "8.0.1"; // this should not be the same version as the default. aka: MicrosoftMauiPreviousDotNetReleasedVersion in eng/Versions.props
public const string MauiVersionCurrent = "9.0.0-preview.6.24327.7"; // this should not be the same as the last release
public const string MauiVersionPrevious = "8.0.60"; // this should not be the same version as the default. aka: MicrosoftMauiPreviousDotNetReleasedVersion in eng/Versions.props

char[] invalidChars = { '{', '}', '(', ')', '$', ':', ';', '\"', '\'', ',', '=', '.', '-', ' ', };

public string MauiPackageVersion
{
get
{
var version = Environment.GetEnvironmentVariable("MAUI_PACKAGE_VERSION");
if (string.IsNullOrWhiteSpace(version))
throw new Exception("MAUI_PACKAGE_VERSION was not set.");
return version;
}
}

public string TestName
{
get
Expand Down
Loading
Loading