-
Notifications
You must be signed in to change notification settings - Fork 354
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
Update workload pack tasks #7614
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fcb5056
Update workload pack tasks
joeloff 402418a
Suppress NU5118; Add RelatedProduct information
joeloff 0a71af3
Fix serialization
joeloff 3b4b90c
Make Icon.png conditional to avoid duplicate files
joeloff 9953f6d
Make AddPackageIcon target conditional
joeloff 6b9b228
Switch back to System.Text.Json for crossplat builds
joeloff 4a775c6
Change BeforeTargets
joeloff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
273 changes: 273 additions & 0 deletions
273
src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/testassets/MonoWorkloadManifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,273 @@ | ||
{ | ||
"version": "6.0.0-preview.7.21358.4", | ||
"depends-on": { | ||
"Microsoft.NET.Workload.Emscripten": "6.0.0-preview.7.21330.1" | ||
}, | ||
"workloads": { | ||
"microsoft-net-sdk-blazorwebassembly-aot": { | ||
"description": "Browser Runtime native performance tools", | ||
"packs": [ | ||
"Microsoft.NET.Runtime.WebAssembly.Sdk", | ||
"Microsoft.NETCore.App.Runtime.Mono.browser-wasm", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm", | ||
"Microsoft.NET.Runtime.Emscripten.Node", | ||
"Microsoft.NET.Runtime.Emscripten.Python", | ||
"Microsoft.NET.Runtime.Emscripten.Sdk" | ||
], | ||
"extends": [ "microsoft-net-runtime-mono-tooling", "microsoft-net-sdk-emscripten" ], | ||
"platforms": [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ] | ||
}, | ||
"microsoft-net-runtime-android": { | ||
"abstract": true, | ||
"description": "Android Mono Runtime", | ||
"packs": [ | ||
"Microsoft.NETCore.App.Runtime.Mono.android-arm", | ||
"Microsoft.NETCore.App.Runtime.Mono.android-arm64", | ||
"Microsoft.NETCore.App.Runtime.Mono.android-x64", | ||
"Microsoft.NETCore.App.Runtime.Mono.android-x86" | ||
], | ||
"extends": [ "microsoft-net-runtime-mono-tooling" ], | ||
"platforms": [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ] | ||
}, | ||
"microsoft-net-runtime-android-aot": { | ||
"abstract": true, | ||
"description": "Android Mono AOT Workload", | ||
"packs": [ | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-x86", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-x64", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-arm", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-arm64" | ||
], | ||
"extends": [ "microsoft-net-runtime-android" ], | ||
"platforms": [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ] | ||
}, | ||
"microsoft-net-runtime-ios": { | ||
"abstract": true, | ||
"description": "iOS Mono Runtime and AOT Workload", | ||
"packs": [ | ||
"Microsoft.NETCore.App.Runtime.Mono.ios-arm", | ||
"Microsoft.NETCore.App.Runtime.Mono.ios-arm64", | ||
"Microsoft.NETCore.App.Runtime.Mono.iossimulator", | ||
"Microsoft.NETCore.App.Runtime.Mono.iossimulator-x86", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm64", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-x86" | ||
], | ||
"extends": [ "microsoft-net-runtime-mono-tooling" ], | ||
"platforms": [ "osx-arm64", "osx-x64" ] | ||
}, | ||
"microsoft-net-runtime-maccatalyst": { | ||
"abstract": true, | ||
"description": "MacCatalyst Mono Runtime and AOT Workload", | ||
"packs": [ | ||
"Microsoft.NETCore.App.Runtime.Mono.maccatalyst", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst" | ||
], | ||
"extends": [ "microsoft-net-runtime-mono-tooling" ], | ||
"platforms": [ "osx-arm64", "osx-x64" ] | ||
}, | ||
"microsoft-net-runtime-tvos": { | ||
"abstract": true, | ||
"description": "tvOS Mono Runtime and AOT Workload", | ||
"packs": [ | ||
"Microsoft.NETCore.App.Runtime.Mono.tvos-arm64", | ||
"Microsoft.NETCore.App.Runtime.Mono.tvossimulator", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.tvos-arm64", | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.tvossimulator" | ||
], | ||
"extends": [ "microsoft-net-runtime-mono-tooling" ], | ||
"platforms": [ "osx-arm64", "osx-x64" ] | ||
}, | ||
"microsoft-net-runtime-mono-tooling": { | ||
"abstract": true, | ||
"description": "Shared native build tooling for Mono runtime", | ||
"packs": [ | ||
"Microsoft.NET.Runtime.MonoAOTCompiler.Task", | ||
"Microsoft.NET.Runtime.MonoTargets.Sdk", | ||
], | ||
} | ||
}, | ||
"packs": { | ||
"Microsoft.NET.Runtime.MonoAOTCompiler.Task": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NET.Runtime.MonoTargets.Sdk": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NET.Runtime.WebAssembly.Sdk": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.android-arm": { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.android-arm64": { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.android-x64": { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.android-x86": { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-x86": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86", | ||
"linux-x64": "Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x86", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x86", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x86" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-x64": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64", | ||
"linux-x64": "Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x64", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-arm": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm", | ||
"linux-x64": "Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.android-arm64": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64", | ||
"linux-x64": "Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm64", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.maccatalyst": { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.ios-arm" : { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.ios-arm64" : { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.iossimulator" : { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.iossimulator-x86" : { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.Mono.iossimulator-x86" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.tvos-arm64": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvos-arm64", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvos-arm64", | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.tvos-arm64" : { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.tvossimulator" : { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.Mono.tvossimulator-x64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-arm64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.tvossimulator": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-arm64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-x64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm", | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm64": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64", | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-arm64", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x64" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-x86": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x86" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm": { | ||
"kind": "Sdk", | ||
"version": "6.0.0-preview.7.21358.4", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm", | ||
"linux-x64": "Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.browser-wasm", | ||
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm", | ||
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm" | ||
} | ||
}, | ||
"Microsoft.NETCore.App.Runtime.Mono.browser-wasm" : { | ||
"kind": "framework", | ||
"version": "6.0.0-preview.7.21358.4" | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 might have to define an empty "PackageIcon" property so that Arcade doesn't provide defaults and then adds the item group for you.
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 ran under Arcade SDK in dotnet/installer and it seems to work, but I will condition the target
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.
If it works, that's great. I wouldn't think the target would need a condition. I just thought you would have to undefine packageicon in your project to prevent this from executing because Arcade just default defines it here. Perhaps I'm missing something though.