Skip to content

Update out-of-support net8.0 MAUI targets to net9.0 - #26463

Merged
Edward Chen (edgchen1) merged 8 commits into
mainfrom
edgchen1/fix_dotnet_mobile_eol_issue
Nov 1, 2025
Merged

Update out-of-support net8.0 MAUI targets to net9.0#26463
Edward Chen (edgchen1) merged 8 commits into
mainfrom
edgchen1/fix_dotnet_mobile_eol_issue

Conversation

@edgchen1

Copy link
Copy Markdown
Contributor

Description

.NET MAUI 8 is out of support. See here: https://dotnet.microsoft.com/en-us/platform/support/policy/maui

We started seeing errors about this in the NuGet packaging pipeline.

##[error]C:\Program Files\dotnet\sdk\9.0.306\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): Error NETSDK1202: The workload 'net8.0-ios' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.

This change updates net8.0 mobile target framework monikers to net9.0.

Motivation and Context

Fix packaging pipeline.

Comment thread tools/nuget/generate_nuspec_for_native_nuget.py

@snnn Changming Sun (snnn) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. But, actually I am not able to build the code with .net9 on Linux ( I didn't enable mobile). It's due to the *.snk files . The files were generated years ago with a weak RSA key. Now openssl rejects such low-strength RSA algorithms. So, it cannot sign the files. So, dotnet build cannot generate the managed DLLs.

Comment thread tools/nuget/generate_nuspec_for_native_nuget.py
@edgchen1

Copy link
Copy Markdown
Contributor Author

LGTM. But, actually I am not able to build the code with .net9 on Linux ( I didn't enable mobile). It's due to the *.snk files . The files were generated years ago with a weak RSA key. Now openssl rejects such low-strength RSA algorithms. So, it cannot sign the files. So, dotnet build cannot generate the managed DLLs.

I suppose we'll have to deal with it when upgrading the other target frameworks to net9.0. currently, only the MAUI net8.0 ones are out of support.

@edgchen1
Edward Chen (edgchen1) merged commit 06ac0d4 into main Nov 1, 2025
92 checks passed
@edgchen1
Edward Chen (edgchen1) deleted the edgchen1/fix_dotnet_mobile_eol_issue branch November 1, 2025 00:47
Baiju Meswani (baijumeswani) pushed a commit that referenced this pull request Jan 16, 2026
<!-- Describe your changes. -->

.NET MAUI 8 is out of support. See here:
https://dotnet.microsoft.com/en-us/platform/support/policy/maui

We started seeing errors about this in the NuGet packaging pipeline.
```
```

This change updates net8.0 mobile target framework monikers to net9.0.

<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Fix packaging pipeline.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants