Skip to content

Downgrade android/ios .NET 8 workload to specific version #8968

Closed
@JeroenBer

Description

@JeroenBer

Android application type

.NET Android (net7.0-android, net8.0-android, etc.)

Affected platform version

.NET 8

Description

We accidentally updated our .NET 8 workload version by restoring a workload for another project.

Now on Windows our .NET8 Android workload version is:
34.0.1.94; git-rev-head:0d97e20; git-branch:release/8.0.2xx

We need to restore it to this version below because all our production releases are using this workload:
34.0.1.78; git-rev-head:87e4a6d; git-branch:release/8.0.1xx

Can anyone tell us exactly how to do this ?

Also we installed a new MacMini and because of some regression bugs for "ios" workload so we need to downgrade this from:

17.2.8053
to:
17.2.8022

There seems to be an option for dotnet workload restore --from-rollback-file for this ? But how do we determine the correct parameter for this ?

For professional development we need to be able to pin workloads. We first need to do some regression testing before bringing a new workload version into production.
Also we need to be able to specify the workload version we want to install, we want all our developers to use the same workload version and not use different versions or being forced to upgrade to the latest workload version.

Due to Xamarin upgrade experiences we first need to verify and test workload versions before updating them since they sometimes introduce new bugs. We also need to be able to revert to a previous version.

Steps to Reproduce

Not available

Did you find any workaround?

No

Relevant log output

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions