sdk icon indicating copy to clipboard operation
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’

Open v-xiaofchen opened this issue 1 year ago • 10 comments

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.

  1. 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
  2. Run below commands "sudo dotnet workload install maui-android --skip-manifest-update --configfile ~/.nuget/NuGet/NuGet.Config" "sudo dotnet workload update " "dotnet workload list"
  3. observe

Expected:

The maui-android workload manifest version should update to 9.0 after running ‘sudo dotnet workload update’. workload1

Exceptions (if any)

The maui-android workload manifest version don't update to 9.0 after running ‘sudo dotnet workload update’. workload222

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

v-xiaofchen avatar Jan 12 '24 08:01 v-xiaofchen

This issue was fixed in 9.0.100-preview.1.24076.20 2

ChenhuiYuan01 avatar Jan 29 '24 08:01 ChenhuiYuan01

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: image

after upgrading: image

v-xiaofchen avatar Feb 02 '24 09:02 v-xiaofchen

@jonathanpeppers what feeds are the preview1 band maui workloads in? I assume that's what should be tested here.

marcpopMSFT avatar Feb 02 '24 17:02 marcpopMSFT

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

jonathanpeppers avatar Feb 02 '24 17:02 jonathanpeppers

@v-xiaofchen can you check with the feed provided by Jonathan?

richaverma1 avatar Feb 06 '24 16:02 richaverma1

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

jonathanpeppers avatar Feb 06 '24 17:02 jonathanpeppers

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.

marcpopMSFT avatar Feb 06 '24 18:02 marcpopMSFT

@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: image after upgrading: image

v-xiaofchen avatar Feb 29 '24 01:02 v-xiaofchen

.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 avatar Feb 29 '24 15:02 jonathanpeppers

@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 image after: image

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: image After image 2). this issue not repro on previous build on Mac OS

  1. 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 image

dotnet workload update image

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 image

note: For maui, the manifest version is displayed as 9.0.0-ci.net9.10243/9.0.100-preview.2. image

FYI @richaverma1

vdanche avatar Mar 04 '24 07:03 vdanche