-
Notifications
You must be signed in to change notification settings - Fork 549
[dotnet] rename workload to Microsoft.NET.Sdk._platform_.Manifest-6.0.100 #11436
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
[dotnet] rename workload to Microsoft.NET.Sdk._platform_.Manifest-6.0.100 #11436
Conversation
….100 Context: https://github.com/dotnet/designs/pull/188/files#diff-8fcaa29d8e6f00b34b3cb1830d93f33e75f04424780a66a3c658c7021048e74fR125 Context: dotnet/android#5898 The `$(PackageId)` of our workload `.nupkg` needs to be: Microsoft.NET.Sdk._platform_.Manifest-6.0.100 While the `$(PackageVersion)` remains the same as before. The layout on disk will change to: dotnet\sdk-manifests\6.0.100\Microsoft.NET.Sdk._platform_\ WorkloadManifest.json WorkloadManifest.targets Note that `.Manifest` and `-6.0.100` are not in the folder name on disk. At the same time, let's also update the `version` in `WorkloadManifest.json` so it contains the proper version for our workload. This used to not be possible because `version` was a `long`, but it now is a `string` where we can put our version.
✅ [PR Build] Tests passed on Build. ✅Tests passed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diff✅ API Diff (from PR only) (no change) 🎉 All 104 tests passed 🎉Pipeline on Agent XAMBOT-1096.BigSur' |
| <Project> | ||
| <PropertyGroup> | ||
| <PackageId>Microsoft.NET.Workload.$(_PlatformName)</PackageId> | ||
| <PackageId>Microsoft.NET.Sdk.$(_PlatformName).Manifest-6.0.100</PackageId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could do export DOTNET6_VERSION_BAND somewhere in dotnet/Makefile, and then you can use that variable here:
| <PackageId>Microsoft.NET.Sdk.$(_PlatformName).Manifest-6.0.100</PackageId> | |
| <PackageId>Microsoft.NET.Sdk.$(_PlatformName).Manifest-$(DOTNET6_VERSION_BAND)</PackageId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just passed it with -p:VersionBand, this works, thanks.
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diff✅ API Diff (from PR only) (no change) Test results4 tests failed, 100 tests passed.Failed tests
Pipeline on Agent XAMBOT-1104.BigSur' |
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diff✅ API Diff (from PR only) (no change) Test results4 tests failed, 100 tests passed.Failed tests
Pipeline on Agent XAMBOT-1098.BigSur |
|
Test failures are unrelated (#11456) |
Context: https://github.com/dotnet/designs/pull/188/files#diff-8fcaa29d8e6f00b34b3cb1830d93f33e75f04424780a66a3c658c7021048e74fR125 Context: dotnet/android#5898 Context: dotnet/macios#11436 The Xamarin workload manifest packages have been renamed to have a `$(PackageId)` of: Microsoft.NET.Sdk.[platform].Manifest-6.0.100 The `dotnet` directory on disk is expected to contain: dotnet\sdk-manifests\6.0.100\Microsoft.NET.Sdk.[platform]\ WorkloadManifest.json WorkloadManifest.targets I manually tested `.\build.cmd -pack -publish` which produced `artifacts\**\dotnet-sdk-6.0.100-dev-win-x64.exe`. After installing it, I can see the "advertising manifest" feature seems to be working: > dotnet workload install microsoft-android-sdk-full --configfile NuGet.config Updated advertising manifest microsoft.net.sdk.android. Updated advertising manifest microsoft.net.sdk.ios. Updated advertising manifest microsoft.net.sdk.maccatalyst. Updated advertising manifest microsoft.net.sdk.macos. Updated advertising manifest microsoft.net.sdk.tvos. Failed to update the advertising manifest microsoft.net.workload.blazorwebassembly: microsoft.net.workload.blazorwebassembly.manifest-6.0.100 is not found in NuGet feeds https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json, https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json, https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json", Installing pack Microsoft.Android.Sdk version 11.0.200-ci.main.256... Writing workload pack installation record for Microsoft.Android.Sdk version 11.0.200-ci.main.256... Installing pack Microsoft.Android.Sdk.BundleTool version 11.0.200-ci.main.256... Writing workload pack installation record for Microsoft.Android.Sdk.BundleTool version 11.0.200-ci.main.256... Installing pack Microsoft.Android.Ref version 11.0.200-ci.main.256... Writing workload pack installation record for Microsoft.Android.Ref version 11.0.200-ci.main.256... Installing pack Microsoft.Android.Templates version 11.0.200-ci.main.256... Writing workload pack installation record for Microsoft.Android.Templates version 11.0.200-ci.main.256... Garbage collecting for SDK feature bands 6.0.100... Successfully installed workload(s) microsoft-android-sdk-full. Then I'm able to build and run an Android application using the installed workload: > dotnet build HelloAndroid -t:Run ... Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:21.76
Changes: dotnet/macios@19482a7...4aa8d9a Update dependencies from https://github.com/xamarin/xamarin-macios build 20210509.1 Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk From Version 11.3.100-ci.main.697 -> To Version 11.3.100-ci.main.733 ~~ Other changes ~~ * Workload manifest packages were renamed See: dotnet/installer#10538 See: dotnet/macios#11436 Co-authored-by: Jonathan Peppers <[email protected]>
Changes: dotnet/macios@19482a7...4aa8d9a Update dependencies from https://github.com/xamarin/xamarin-macios build 20210509.1 Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk From Version 11.3.100-ci.main.697 -> To Version 11.3.100-ci.main.733 ~~ Other changes ~~ * Workload manifest packages were renamed See: dotnet/installer#10538 See: dotnet/macios#11436 Co-authored-by: Jonathan Peppers <[email protected]>

Context: https://github.com/dotnet/designs/pull/188/files#diff-8fcaa29d8e6f00b34b3cb1830d93f33e75f04424780a66a3c658c7021048e74fR125
Context: dotnet/android#5898
The
$(PackageId)of our workload.nupkgneeds to be:While the
$(PackageVersion)remains the same as before.The layout on disk will change to:
Note that
.Manifestand-6.0.100are not in the folder name on disk.At the same time, let's also update the
versioninWorkloadManifest.jsonso it contains the proper version for ourworkload. This used to not be possible because
versionwas along,but it now is a
stringwhere we can put our version.