sdk
                                
                                 sdk copied to clipboard
                                
                                    sdk copied to clipboard
                            
                            
                            
                        [NETE2ESDK][MAC][Linux] With NET 9 alpha SDK installed, the maui-android workload manifest version should update to 9.0 after running ‘sudo dotnet workload update’
Description
With NET 9 alpha SDK installed, the maui-android workload manifest version should update to 9.0 after running ‘sudo dotnet workload update’.
Steps to Reproduce
Prepare clean Mac OS or Linux machine.
- Install .NET 9 alpha SDK (9.0.100-alpha.1.24061.40(runtime-9.0.0-alpha.1.24061.8)) from https://github.com/dotnet/installer
- Run below commands "sudo dotnet workload install maui-android --skip-manifest-update --configfile ~/.nuget/NuGet/NuGet.Config" "sudo dotnet workload update " "dotnet workload list"
- observe
Expected:
The maui-android workload manifest version should update to 9.0 after running ‘sudo dotnet workload update’.
Exceptions (if any)
The maui-android workload manifest version don't update to 9.0 after running ‘sudo dotnet workload update’.
Note:
1.This issue also repro on MAC when install maui workload. 2.This issue not repro with .NET 9 SDK tar.gz package installed.
dotnet --info:
.NET SDK: Version: 9.0.100-alpha.1.24061.40 Commit: de133935b1 Workload version: 9.0.100-manifests.ad5c6cc9
Runtime Environment: OS Name: debian OS Version: 12 OS Platform: Linux RID: linux-x64 Base Path: /usr/share/dotnet/sdk/9.0.100-alpha.1.24061.40/
.NET workloads installed: There are no installed workloads to display.
Host: Version: 9.0.0-alpha.1.24061.8 Architecture: x64 Commit: 8d1c3d9527
.NET SDKs installed: 9.0.100-alpha.1.24061.40 [/usr/share/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 9.0.0-alpha.1.24061.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 9.0.0-alpha.1.24061.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found: None
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download
This issue was fixed in 9.0.100-preview.1.24076.20
The maui workload manifest version doesn't update to 9.0.preview.1 after running ‘sudo dotnet workload update’ by using installer package.
before upgrading:
after upgrading:
@jonathanpeppers what feeds are the preview1 band maui workloads in? I assume that's what should be tested here.
The dotnet9 feed has "daily" builds:
https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet9/NuGet/Microsoft.NET.Sdk.Maui.Manifest-9.0.100-preview.1/overview/9.0.0-preview.1.9963%20sha.9ee714a0b8-azdo.9013930
@v-xiaofchen can you check with the feed provided by Jonathan?
There is an example in an email thread:
sudo dotnet workload install maui --from-rollback-file http://maui.blob.core.windows.net/metadata/rollbacks/9.0.0-preview.1.9973.json --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json --source https://api.nuget.org/v3/index.json
Also, I'm not sure update will work between preview and pre-preview versions (or between preview versions for that matter). They are treated as separate bands. It'd be like wanting 8.0.200 update to work after installing workloads in 8.0.103. That can work with the --from-preview-sdk flag but may have limitations.
@jonathanpeppers
With NET 9 preview2 SDK installed, The Maui-android/Maui workload manifest version can update to 9.0.0-ci.net9.10075 rather than 9.0.preview.2 after running ‘sudo dotnet workload update’   is it expected? I also want to know if it will be updated to preview2 later? Can you help to take a look.
before upgrading:
after upgrading:
.NET 9 Preview 2 hasn't released yet, so that is why you might see a "nightly" version number.
If you use .NET 9 Preview 1 with just NuGet.org as the only source, does everything work? Unless you need Preview 2 for something, it might be more stable than a nightly build.
@jonathanpeppers for today's build net 9 preview 2 sdk 9.0.100-preview.2.24129.7(runtime-9.0.0-preview.2.24128.5),
there are two issues as below:
1.The maui workload manifest version could not be updated to 9.0.0-ci.net9.10243/9.0.100-preview.2  on Mac OS.
before
after:
note:
1).This issue not repro on win-x64, the maui manifest version is displayed as 9.0.0-ci.net9.10243/9.0.100-preview.2 after upgrading on win-x64.
before:
After
2). this issue not repro on previous build on Mac OS
- the maui-android workload manifeset version is preview 1 not preview 2 on win-x64/Linux/Mac OS, is it expected?
dotnet workload install maui-android --skip-manifest-update
dotnet workload update
we found that we use "dotnet workload install maui-android" without using --skip-manifest-update, the manifest version for maui-andriod is still displayed as preview 1
note:
For maui, the manifest version is displayed as 9.0.0-ci.net9.10243/9.0.100-preview.2.
FYI @richaverma1