From 229dc869d3825465ae69971dd94b09e36f4f6842 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 1 Sep 2023 15:33:02 -0500 Subject: [PATCH 01/23] Move TargetsCurrent to net9 and add net8 workload --- .../Sdk/AutoImport.props | 4 +- .../WorkloadManifest.targets.in | 10 +- ...kload.Mono.Toolchain.net8.Manifest.pkgproj | 63 +++ .../WorkloadManifest.json.in | 490 ++++++++++++++++++ .../WorkloadManifest.targets.in | 73 +++ .../localize/WorkloadManifest.cs.json | 3 + .../localize/WorkloadManifest.de.json | 3 + .../localize/WorkloadManifest.en.json | 5 + .../localize/WorkloadManifest.es.json | 3 + .../localize/WorkloadManifest.fr.json | 3 + .../localize/WorkloadManifest.it.json | 3 + .../localize/WorkloadManifest.ja.json | 3 + .../localize/WorkloadManifest.ko.json | 3 + .../localize/WorkloadManifest.pl.json | 3 + .../localize/WorkloadManifest.pt-BR.json | 3 + .../localize/WorkloadManifest.ru.json | 3 + .../localize/WorkloadManifest.tr.json | 3 + .../localize/WorkloadManifest.zh-Hans.json | 3 + .../localize/WorkloadManifest.zh-Hant.json | 3 + 19 files changed, 679 insertions(+), 5 deletions(-) create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.cs.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.de.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.en.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.es.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.fr.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.it.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ja.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ko.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pl.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pt-BR.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ru.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.tr.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hans.json create mode 100644 src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hant.json diff --git a/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/AutoImport.props b/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/AutoImport.props index 6c0c775c12b0a..46d7b7e50b4a5 100644 --- a/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/AutoImport.props +++ b/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/AutoImport.props @@ -1,8 +1,8 @@ - net8.0 - true + net9.0 + true diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in index 70658c5c21a1f..0d7914911d73d 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in @@ -2,13 +2,16 @@ <_RuntimePackInWorkloadVersionCurrent>${PackageVersion} + <_RuntimePackInWorkloadVersion8>${PackageVersionNet8} <_RuntimePackInWorkloadVersion7>${PackageVersionNet7} <_RuntimePackInWorkloadVersion6>${PackageVersionNet6} + true true - true true - true + true + + true $(WasmNativeWorkload8) @@ -31,8 +34,9 @@ true - $(WasmNativeWorkload7) + $(WasmNativeWorkload9) $(WasmNativeWorkload8) + $(WasmNativeWorkload7) $(WasmNativeWorkload) false $(WasmNativeWorkloadAvailable) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj new file mode 100644 index 0000000000000..508038ec48cb4 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj @@ -0,0 +1,63 @@ + + + + + Internal toolchain package not meant for direct consumption. Please do not reference directly. + + + + + + + + Microsoft.NET.Workload.Mono.ToolChain.net8.Manifest-$(SdkBandVersionForWorkload_FromRuntimeVersions) + + + + $(IntermediateOutputPath)WorkloadManifest.json + $(IntermediateOutputPath)WorkloadManifest.targets + + + + + + + + + + data/localize + + + + + + + + PackageVersion=$(PackageVersion); + + + + <_WorkloadManifestValues Include="WorkloadVersion" Value="$(PackageVersion)" /> + <_WorkloadManifestValues Include="PackageVersionNet8" Value="$(PackageVersionNet8)" Condition="'$(PackageVersionNet7)' != ''" /> + <_WorkloadManifestValues Include="PackageVersionNet8" Value="$(PackageVersion)" Condition="'$(PackageVersionNet8)' == ''" /> + <_WorkloadManifestValues Include="EmscriptenVersion" Value="$(MicrosoftNETRuntimeEmscriptenVersion)" /> + <_WorkloadManifestValues Include="NetCoreAppCurrent" Value="$(NetCoreAppCurrent)" /> + + + + + + + + + + + diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in new file mode 100644 index 0000000000000..b646a43b4e9b5 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in @@ -0,0 +1,490 @@ +{ + "version": "${WorkloadVersion}", + "depends-on": { + "Microsoft.NET.Workload.Emscripten.net8": "${EmscriptenVersion}" + }, + "workloads": { + "wasm-tools-net8": { + "description": ".NET WebAssembly build tools for net8.0", + "packs": [ + "Microsoft.NET.Runtime.WebAssembly.Sdk.net8", + "Microsoft.NETCore.App.Runtime.Mono.net8.browser-wasm", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.browser-wasm" + ], + "extends": [ "microsoft-net-runtime-mono-tooling-net8", "microsoft-net-sdk-emscripten-net8" ], + "platforms": [ "win-x64", "win-arm64", "linux-x64", "osx-x64", "osx-arm64" ] + }, + "wasm-experimental-net8": { + "description": ".NET WebAssembly experimental tooling for net8.0", + "packs": [ + "Microsoft.NET.Runtime.WebAssembly.Templates.net8", + "Microsoft.NETCore.App.Runtime.Mono.multithread.net8.browser-wasm", + "Microsoft.NETCore.App.Runtime.Mono.perftrace.net8.browser-wasm" + ], + "extends": [ "wasm-tools-net8" ], + "platforms": [ "win-x64", "win-arm64", "linux-x64", "osx-x64", "osx-arm64" ] + }, + "microsoft-net-runtime-android-net8": { + "abstract": true, + "description": "Android Mono Runtime", + "packs": [ + "Microsoft.NETCore.App.Runtime.Mono.net8.android-arm", + "Microsoft.NETCore.App.Runtime.Mono.net8.android-arm64", + "Microsoft.NETCore.App.Runtime.Mono.net8.android-x64", + "Microsoft.NETCore.App.Runtime.Mono.net8.android-x86" + ], + "extends": [ "microsoft-net-runtime-mono-tooling-net8" ], + "platforms": [ "win-x64", "win-arm64", "linux-x64", "osx-x64", "osx-arm64" ] + }, + "microsoft-net-runtime-android-aot-net8": { + "abstract": true, + "description": "Android Mono AOT Workload", + "packs": [ + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.android-x86", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.android-x64", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.android-arm", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.android-arm64" + ], + "extends": [ "microsoft-net-runtime-android-net8" ], + "platforms": [ "win-x64", "win-arm64", "linux-x64", "osx-x64", "osx-arm64" ] + }, + "microsoft-net-runtime-ios-net8": { + "abstract": true, + "description": "iOS Mono Runtime and AOT Workload", + "packs": [ + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.ios-arm", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.ios-arm64", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.iossimulator-arm64", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.iossimulator-x64", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.iossimulator-x86" + ], + "extends": [ "runtimes-ios-net8" ], + "platforms": [ "win-x64", "win-arm64", "osx-arm64", "osx-x64" ] + }, + "runtimes-ios-net8": { + "abstract": true, + "description": "iOS Mono Runtime Packs", + "packs": [ + "Microsoft.NETCore.App.Runtime.Mono.net8.ios-arm", + "Microsoft.NETCore.App.Runtime.Mono.net8.ios-arm64", + "Microsoft.NETCore.App.Runtime.Mono.net8.iossimulator-arm64", + "Microsoft.NETCore.App.Runtime.Mono.net8.iossimulator-x64", + "Microsoft.NETCore.App.Runtime.Mono.net8.iossimulator-x86" + ], + "extends": [ "microsoft-net-runtime-mono-tooling-net8" ], + "platforms": [ "win-x64", "win-arm64", "osx-arm64", "osx-x64" ] + }, + "microsoft-net-runtime-maccatalyst-net8": { + "abstract": true, + "description": "MacCatalyst Mono Runtime and AOT Workload", + "packs": [ + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.maccatalyst-arm64", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.maccatalyst-x64" + ], + "extends": [ "runtimes-maccatalyst-net8" ], + "platforms": [ "win-x64", "win-arm64", "osx-arm64", "osx-x64" ] + }, + "runtimes-maccatalyst-net8": { + "abstract": true, + "description": "MacCatalyst Mono Runtime Packs", + "packs": [ + "Microsoft.NETCore.App.Runtime.Mono.net8.maccatalyst-arm64", + "Microsoft.NETCore.App.Runtime.Mono.net8.maccatalyst-x64" + ], + "extends": [ "microsoft-net-runtime-mono-tooling-net8" ], + "platforms": [ "win-x64", "win-arm64", "osx-arm64", "osx-x64" ] + }, + "microsoft-net-runtime-macos-net8": { + "abstract": true, + "description": "MacOS CoreCLR and Mono Runtime Workload", + "packs": [ + "Microsoft.NETCore.App.Runtime.Mono.net8.osx-arm64", + "Microsoft.NETCore.App.Runtime.Mono.net8.osx-x64", + "Microsoft.NETCore.App.Runtime.osx-arm64", + "Microsoft.NETCore.App.Runtime.osx-x64" + ], + "extends": [ "microsoft-net-runtime-mono-tooling-net8" ], + "platforms": [ "osx-arm64", "osx-x64" ] + }, + "microsoft-net-runtime-tvos-net8": { + "abstract": true, + "description": "tvOS Mono Runtime and AOT Workload", + "packs": [ + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.tvos-arm64", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.tvossimulator-arm64", + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.tvossimulator-x64" + ], + "extends": [ "runtimes-tvos-net8" ], + "platforms": [ "win-x64", "win-arm64", "osx-arm64", "osx-x64" ] + }, + "runtimes-tvos-net8": { + "abstract": true, + "description": "tvOS Mono Runtime Packs", + "packs": [ + "Microsoft.NETCore.App.Runtime.Mono.net8.tvos-arm64", + "Microsoft.NETCore.App.Runtime.Mono.net8.tvossimulator-arm64", + "Microsoft.NETCore.App.Runtime.Mono.net8.tvossimulator-x64" + ], + "extends": [ "microsoft-net-runtime-mono-tooling-net8" ], + "platforms": [ "win-x64", "win-arm64", "osx-arm64", "osx-x64" ] + }, + "runtimes-windows-net8": { + "abstract": true, + "description": "Windows Runtime Packs for net8.0", + "packs": [ + "Microsoft.NETCore.App.Runtime.net8.win-x64", + "Microsoft.NETCore.App.Runtime.net8.win-x86", + "Microsoft.NETCore.App.Runtime.net8.win-arm", + "Microsoft.NETCore.App.Runtime.net8.win-arm64" + ] + }, + "microsoft-net-runtime-mono-tooling-net8": { + "abstract": true, + "description": "Shared native build tooling for Mono runtime", + "packs": [ + "Microsoft.NET.Runtime.MonoAOTCompiler.Task.net8", + "Microsoft.NET.Runtime.MonoTargets.Sdk.net8" + ] + } + }, + "packs": { + "Microsoft.NET.Runtime.MonoAOTCompiler.Task.net8": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NET.Runtime.MonoAOTCompiler.Task" + } + }, + "Microsoft.NET.Runtime.MonoTargets.Sdk.net8": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NET.Runtime.MonoTargets.Sdk" + } + }, + "Microsoft.NET.Runtime.WebAssembly.Sdk.net8": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NET.Runtime.WebAssembly.Sdk" + } + }, + "Microsoft.NET.Runtime.WebAssembly.Templates.net8": { + "kind": "template", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NET.Runtime.WebAssembly.Templates" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.android-arm": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.android-arm" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.android-arm64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.android-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.android-x64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.android-x64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.android-x86": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.android-x86" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.android-x86": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86", + "win-arm64": "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.net8.android-x64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64", + "win-arm64": "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.net8.android-arm": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm", + "win-arm64": "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.net8.android-arm64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64", + "win-arm64": "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.net8.maccatalyst-arm64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.maccatalyst-x64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.osx-arm64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.osx-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.osx-x64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.osx-x64" + } + }, + "Microsoft.NETCore.App.Runtime.net8.osx-arm64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.osx-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.net8.osx-x64": { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.osx-x64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.ios-arm" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.ios-arm" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.ios-arm64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.ios-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.iossimulator-arm64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.iossimulator-x64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.iossimulator-x86" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.iossimulator-x86" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.tvos-arm64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "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.net8.tvos-arm64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.tvos-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.tvossimulator-arm64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.tvossimulator-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.net8.tvossimulator-x64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.tvossimulator-x64" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.maccatalyst-arm64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "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-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.maccatalyst-x64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64", + "osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.tvossimulator-arm64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "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-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.tvossimulator-x64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-x64", + "osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-x64" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.ios-arm": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "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.net8.ios-arm64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "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.net8.iossimulator-arm64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "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-arm64" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.iossimulator-x64": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x64", + "osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x64" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.iossimulator-x86": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x86", + "osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x86" + } + }, + "Microsoft.NETCore.App.Runtime.AOT.Cross.net8.browser-wasm": { + "kind": "Sdk", + "version": "${PackageVersionNet8}", + "alias-to": { + "win-x64": "Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm", + "win-arm64": "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.net8.browser-wasm" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.browser-wasm" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.multithread.net8.browser-wasm" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.multithread.browser-wasm" + } + }, + "Microsoft.NETCore.App.Runtime.Mono.perftrace.net8.browser-wasm" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.Mono.perftrace.browser-wasm" + } + }, + "Microsoft.NETCore.App.Runtime.net8.win-x64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.win-x64" + } + }, + "Microsoft.NETCore.App.Runtime.net8.win-x86" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.win-x86" + } + }, + "Microsoft.NETCore.App.Runtime.net8.win-arm" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.win-arm" + } + }, + "Microsoft.NETCore.App.Runtime.net8.win-arm64" : { + "kind": "framework", + "version": "${PackageVersionNet8}", + "alias-to": { + "any": "Microsoft.NETCore.App.Runtime.win-arm64" + } + } + } +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in new file mode 100644 index 0000000000000..580d796bd7c20 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_MonoWorkloadTargetsMobile>true + <_MonoWorkloadRuntimePackPackageVersion>$(_RuntimePackInWorkloadVersion7) + + + + + $(_MonoWorkloadRuntimePackPackageVersion) + + Microsoft.NETCore.App.Runtime.Mono.multithread.**RID** + Microsoft.NETCore.App.Runtime.Mono.perftrace.**RID** + + + diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.cs.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.cs.json new file mode 100644 index 0000000000000..c79d39ad7f74a --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.cs.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net7/description": "Nástroje pro sestavení .NET WebAssembly" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.de.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.de.json new file mode 100644 index 0000000000000..deac970f9cf45 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.de.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": ".NET 8.0 WebAssembly-Buildtools" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.en.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.en.json new file mode 100644 index 0000000000000..78a5129362796 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.en.json @@ -0,0 +1,5 @@ +{ + "workloads/wasm-tools-net8/description": ".NET WebAssembly build tools for net8.0", + "workloads/wasm-experimental-net8/description": ".NET WebAssembly experimental tooling for net8.0", + "workloads/runtimes-windows-net8/description": "Windows Runtime Packs for net8.0" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.es.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.es.json new file mode 100644 index 0000000000000..06b3489658c9d --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.es.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": "Herramientas de compilación de WebAssembly de .NET 8.0" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.fr.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.fr.json new file mode 100644 index 0000000000000..87fe76f354952 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.fr.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": "Outils de construction .NET 8.0 WebAssembly" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.it.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.it.json new file mode 100644 index 0000000000000..d4c591ea616d1 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.it.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": "Strumenti di compilazione WebAssembly .NET 8.0" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ja.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ja.json new file mode 100644 index 0000000000000..c57f53c27ccec --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ja.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": ".NET WebAssembly ビルド ツール" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ko.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ko.json new file mode 100644 index 0000000000000..fc62bb1de6da7 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ko.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": ".NET 8.0 WebAssembly 빌드 도구" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pl.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pl.json new file mode 100644 index 0000000000000..0ec404a2bea3e --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pl.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": "Narzędzia kompilacji zestawu WebAssembly platformy .NET 8.0" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pt-BR.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pt-BR.json new file mode 100644 index 0000000000000..82031365ecb7c --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.pt-BR.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": "Ferramentas de build do .NET 8.0 WebAssembly" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ru.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ru.json new file mode 100644 index 0000000000000..d797f5dcc3f20 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.ru.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": "Средства сборки WebAssembly .NET 8.0" +} \ No newline at end of file diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.tr.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.tr.json new file mode 100644 index 0000000000000..e20300297e258 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.tr.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": ".NET 8.0 derleme araçları" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hans.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hans.json new file mode 100644 index 0000000000000..351d7a5aeed3c --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hans.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": ".NET 8.0 WebAssembly 生成工具" +} diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hant.json b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hant.json new file mode 100644 index 0000000000000..10cf7b4776929 --- /dev/null +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/localize/WorkloadManifest.zh-Hant.json @@ -0,0 +1,3 @@ +{ + "workloads/wasm-tools-net8/description": ".NET 8.0 WebAssembly 組建工具" +} From 2ab477efa72a43a4ad08a4e77093c566ac765633 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 1 Sep 2023 17:28:27 -0500 Subject: [PATCH 02/23] Fix version references --- ...soft.NET.Workload.Mono.Toolchain.Current.Manifest.pkgproj | 5 +++-- ...crosoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest.pkgproj b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest.pkgproj index e327fcf2635a2..41c41ea12cd6c 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest.pkgproj +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest.pkgproj @@ -44,9 +44,10 @@ <_WorkloadManifestValues Include="WorkloadVersion" Value="$(PackageVersion)" /> <_WorkloadManifestValues Include="PackageVersion" Value="$(PackageVersion)" /> + <_WorkloadManifestValues Include="PackageVersionNet8" Value="$(PackageVersionNet8)" Condition="'$(PackageVersionNet8)' != ''" /> + <_WorkloadManifestValues Include="PackageVersionNet8" Value="$(PackageVersion)" Condition="'$(PackageVersionNet8)' == ''" /> + <_WorkloadManifestValues Include="PackageVersionNet7" Value="$(PackageVersionNet7)" /> <_WorkloadManifestValues Include="PackageVersionNet6" Value="$(PackageVersionNet6)" /> - <_WorkloadManifestValues Include="PackageVersionNet7" Value="$(PackageVersionNet7)" Condition="'$(PackageVersionNet7)' != ''" /> - <_WorkloadManifestValues Include="PackageVersionNet7" Value="$(PackageVersion)" Condition="'$(PackageVersionNet7)' == ''" /> <_WorkloadManifestValues Include="NetCoreAppCurrent" Value="$(NetCoreAppCurrent)" /> <_WorkloadManifestValues Include="EmscriptenVersion" Value="$(MicrosoftNETRuntimeEmscriptenVersion)" /> diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj index 508038ec48cb4..59f77406140cf 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest.pkgproj @@ -39,7 +39,7 @@ <_WorkloadManifestValues Include="WorkloadVersion" Value="$(PackageVersion)" /> - <_WorkloadManifestValues Include="PackageVersionNet8" Value="$(PackageVersionNet8)" Condition="'$(PackageVersionNet7)' != ''" /> + <_WorkloadManifestValues Include="PackageVersionNet8" Value="$(PackageVersionNet8)" Condition="'$(PackageVersionNet8)' != ''" /> <_WorkloadManifestValues Include="PackageVersionNet8" Value="$(PackageVersion)" Condition="'$(PackageVersionNet8)' == ''" /> <_WorkloadManifestValues Include="EmscriptenVersion" Value="$(MicrosoftNETRuntimeEmscriptenVersion)" /> <_WorkloadManifestValues Include="NetCoreAppCurrent" Value="$(NetCoreAppCurrent)" /> From b675fd7949a483c3f57529716a0bfa147be59518 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 1 Sep 2023 20:51:02 -0500 Subject: [PATCH 03/23] Update src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in --- .../WorkloadManifest.targets.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in index 0d7914911d73d..e706e7670486b 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in @@ -6,7 +6,7 @@ <_RuntimePackInWorkloadVersion7>${PackageVersionNet7} <_RuntimePackInWorkloadVersion6>${PackageVersionNet6} - true + true true true true From 01b67f4e92705c5787d1b637b0a5db4945fc3b3e Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Tue, 19 Sep 2023 19:35:57 -0400 Subject: [PATCH 04/23] [wasm] build net8 workload --- eng/testing/tests.browser.targets | 7 ++++++- .../WorkloadManifest.json.in | 2 +- .../WorkloadManifest.json.in | 10 +--------- .../WorkloadManifest.targets.in | 3 +-- src/mono/nuget/manifest-packages.proj | 1 + src/mono/wasm/Makefile | 2 +- 6 files changed, 11 insertions(+), 14 deletions(-) diff --git a/eng/testing/tests.browser.targets b/eng/testing/tests.browser.targets index 8c4b3e46c9eac..4f10b931f7975 100644 --- a/eng/testing/tests.browser.targets +++ b/eng/testing/tests.browser.targets @@ -264,6 +264,11 @@ Variant="latest" Version="$(PackageVersionForWorkloadManifests)" /> + + - + diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.json.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.json.in index 5af8dcbd94e17..993a9733f362e 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.json.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.json.in @@ -18,7 +18,7 @@ "description": ".NET WebAssembly experimental tooling", "packs": [ "Microsoft.NET.Runtime.WebAssembly.Templates", - "Microsoft.NETCore.App.Runtime.Mono.multithread.browser-wasm", + "Microsoft.NETCore.App.Runtime.Mono.multithread.browser-wasm" ], "extends": [ "wasm-tools" ], "platforms": [ "win-x64", "win-arm64", "linux-x64", "linux-arm64", "osx-x64", "osx-arm64" ] diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in index b646a43b4e9b5..7416faa89cd00 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in @@ -18,8 +18,7 @@ "description": ".NET WebAssembly experimental tooling for net8.0", "packs": [ "Microsoft.NET.Runtime.WebAssembly.Templates.net8", - "Microsoft.NETCore.App.Runtime.Mono.multithread.net8.browser-wasm", - "Microsoft.NETCore.App.Runtime.Mono.perftrace.net8.browser-wasm" + "Microsoft.NETCore.App.Runtime.Mono.multithread.net8.browser-wasm" ], "extends": [ "wasm-tools-net8" ], "platforms": [ "win-x64", "win-arm64", "linux-x64", "osx-x64", "osx-arm64" ] @@ -451,13 +450,6 @@ "any": "Microsoft.NETCore.App.Runtime.Mono.multithread.browser-wasm" } }, - "Microsoft.NETCore.App.Runtime.Mono.perftrace.net8.browser-wasm" : { - "kind": "framework", - "version": "${PackageVersionNet8}", - "alias-to": { - "any": "Microsoft.NETCore.App.Runtime.Mono.perftrace.browser-wasm" - } - }, "Microsoft.NETCore.App.Runtime.net8.win-x64" : { "kind": "framework", "version": "${PackageVersionNet8}", diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in index 580d796bd7c20..1fc58552c5481 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in @@ -59,7 +59,7 @@ <_MonoWorkloadTargetsMobile>true - <_MonoWorkloadRuntimePackPackageVersion>$(_RuntimePackInWorkloadVersion7) + <_MonoWorkloadRuntimePackPackageVersion>$(_RuntimePackInWorkloadVersion8) @@ -67,7 +67,6 @@ $(_MonoWorkloadRuntimePackPackageVersion) Microsoft.NETCore.App.Runtime.Mono.multithread.**RID** - Microsoft.NETCore.App.Runtime.Mono.perftrace.**RID** diff --git a/src/mono/nuget/manifest-packages.proj b/src/mono/nuget/manifest-packages.proj index 271409ec507a0..e7cd9607a4a02 100644 --- a/src/mono/nuget/manifest-packages.proj +++ b/src/mono/nuget/manifest-packages.proj @@ -3,5 +3,6 @@ + diff --git a/src/mono/wasm/Makefile b/src/mono/wasm/Makefile index 6af5ba3a597fc..5d6f4e5308587 100644 --- a/src/mono/wasm/Makefile +++ b/src/mono/wasm/Makefile @@ -88,7 +88,7 @@ build-tasks: $(DOTNET) build $(TOP)/src/tasks/tasks.proj /p:Configuration=$(CONFIG) $(MSBUILD_ARGS) build-packages: - rm $(TOP)/artifacts/packages/$(CONFIG)/Shipping/*.nupkg + rm -f $(TOP)/artifacts/packages/$(CONFIG)/Shipping/*.nupkg EMSDK_PATH=$(EMSDK_PATH) $(TOP)/build.sh mono.packages+mono.manifests+packs.product -os browser -c $(CONFIG) --binaryLog /p:ContinueOnError=false /p:StopOnFirstFailure=true $(MSBUILD_ARGS) clean: From a484114980c1216a16d18163eb738dbe2d67ee05 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Wed, 20 Sep 2023 02:33:21 -0400 Subject: [PATCH 05/23] Update emsdk --- eng/Version.Details.xml | 4 ++-- eng/Versions.props | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 68a296dc447a8..ff58b02792a45 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -90,9 +90,9 @@ 89be445dd4936157533ad96bafb95f701430653a - + https://github.com/dotnet/emsdk - bebe955e9f7d392fbca594b1c76c54ba2e27027e + bbdbe152659fc5247db1ca1ae398a889e101631d diff --git a/eng/Versions.props b/eng/Versions.props index f70c21cf3ca6c..ef493d0f4e089 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -236,7 +236,7 @@ Note: when the name is updated, make sure to update dependency name in eng/pipelines/common/xplat-setup.yml like - DarcDependenciesChanged.Microsoft_NET_Workload_Emscripten_Current_Manifest-8_0_100_Transport --> - 9.0.0-alpha.1.23465.3 + 9.0.0-alpha.1.23469.6 $(MicrosoftNETWorkloadEmscriptenCurrentManifest90100TransportVersion) 1.1.87-gba258badda From fc607e6f3747a30d7608423e8a25be6e5876bb9c Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Wed, 20 Sep 2023 12:32:25 -0400 Subject: [PATCH 06/23] Update current template to reference net9 --- .../templates/browser/.template.config/template.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mono/wasm/templates/templates/browser/.template.config/template.json b/src/mono/wasm/templates/templates/browser/.template.config/template.json index 3cb0a19dc265b..7dc1a9ca54b20 100644 --- a/src/mono/wasm/templates/templates/browser/.template.config/template.json +++ b/src/mono/wasm/templates/templates/browser/.template.config/template.json @@ -5,7 +5,7 @@ "generatorVersions": "[1.0.0.0-*)", "groupIdentity": "WebAssembly.Browser", "precedence": 8000, - "identity": "WebAssembly.Browser.8.0", + "identity": "WebAssembly.Browser.9.0", "name": "WebAssembly Browser App", "description": "A project template for creating a .NET app that runs on WebAssembly in a browser", "shortName": "wasmbrowser", @@ -40,12 +40,12 @@ "datatype": "choice", "choices": [ { - "choice": "net8.0", - "description": "Target net8.0", - "displayName": ".NET 8.0" + "choice": "net9.0", + "description": "Target net9.0", + "displayName": ".NET 9.0" } ], - "defaultValue": "net8.0", + "defaultValue": "net9.0", "replaces": "net7.0", "displayName": "framework" } From 3e22f75f97226b2cfa483e0f9284d68c8e6e348c Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Wed, 20 Sep 2023 12:58:57 -0400 Subject: [PATCH 07/23] Bump 8.0 version used for workloads --- eng/Versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Versions.props b/eng/Versions.props index ef493d0f4e089..5c8447d221999 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -7,7 +7,7 @@ 0 0 9.0.100 - 8.0.0-rc.1.23414.4 + 8.0.100-rc.2.23470.7 7.0.8 6.0.$([MSBuild]::Add($([System.Version]::Parse('$(PackageVersionNet7)').Build),11)) alpha From 011ab7c0e645b3deeb3baf8e80bb732f8a53a7c8 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Wed, 20 Sep 2023 15:02:20 -0400 Subject: [PATCH 08/23] Fix version for latest emscripten packages --- eng/Versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Versions.props b/eng/Versions.props index 5c8447d221999..de614454227e6 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -7,7 +7,7 @@ 0 0 9.0.100 - 8.0.100-rc.2.23470.7 + 8.0.100-rc.2.23469.22 7.0.8 6.0.$([MSBuild]::Add($([System.Version]::Parse('$(PackageVersionNet7)').Build),11)) alpha From b15e4591676ce702a9dc1687610224a01903cfc5 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Wed, 20 Sep 2023 18:00:44 -0400 Subject: [PATCH 09/23] fix typo in 8.0 version used for the workload --- eng/Versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Versions.props b/eng/Versions.props index de614454227e6..1d48efa5db75e 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -7,7 +7,7 @@ 0 0 9.0.100 - 8.0.100-rc.2.23469.22 + 8.0.0-rc.2.23469.22 7.0.8 6.0.$([MSBuild]::Add($([System.Version]::Parse('$(PackageVersionNet7)').Build),11)) alpha From d1de6b8c430512dff444acc2e949f19187b52406 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Thu, 21 Sep 2023 00:44:07 -0400 Subject: [PATCH 10/23] disamiguate templates --- .../templates/browser/.template.config/template.json | 2 +- .../templates/console/.template.config/template.json | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mono/wasm/templates/templates/browser/.template.config/template.json b/src/mono/wasm/templates/templates/browser/.template.config/template.json index 7dc1a9ca54b20..9d3e32811b8fa 100644 --- a/src/mono/wasm/templates/templates/browser/.template.config/template.json +++ b/src/mono/wasm/templates/templates/browser/.template.config/template.json @@ -4,7 +4,7 @@ "classifications": [ "Web", "WebAssembly", "Browser" ], "generatorVersions": "[1.0.0.0-*)", "groupIdentity": "WebAssembly.Browser", - "precedence": 8000, + "precedence": 9000, "identity": "WebAssembly.Browser.9.0", "name": "WebAssembly Browser App", "description": "A project template for creating a .NET app that runs on WebAssembly in a browser", diff --git a/src/mono/wasm/templates/templates/console/.template.config/template.json b/src/mono/wasm/templates/templates/console/.template.config/template.json index 559902639dec4..a3dd13fc2d10c 100644 --- a/src/mono/wasm/templates/templates/console/.template.config/template.json +++ b/src/mono/wasm/templates/templates/console/.template.config/template.json @@ -3,8 +3,8 @@ "author": "Microsoft", "classifications": [ "Web", "WebAssembly", "Console" ], "groupIdentity": "WebAssembly.Console", - "precedence": 8000, - "identity": "WebAssembly.Console.8.0", + "precedence": 9000, + "identity": "WebAssembly.Console.9.0", "name": "WebAssembly Console App", "description": "A project template for creating a .NET app that runs on WebAssembly on Node JS or V8", "shortName": "wasmconsole", @@ -21,12 +21,12 @@ "datatype": "choice", "choices": [ { - "choice": "net8.0", - "description": "Target net8.0", - "displayName": ".NET 8.0" + "choice": "net9.0", + "description": "Target net9.0", + "displayName": ".NET 9.0" } ], - "defaultValue": "net8.0", + "defaultValue": "net9.0", "replaces": "net7.0", "displayName": "framework" } From dc7f72019a835513627a541f66f4239ff3f5976a Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Thu, 21 Sep 2023 12:41:52 -0400 Subject: [PATCH 11/23] WBT: explicitly use net8.0 projects for template projects --- src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs b/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs index d23166ff5545e..ada7a82cc64e7 100644 --- a/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs +++ b/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs @@ -41,7 +41,7 @@ public string CreateWasmTemplateProject(string id, string template = "wasmbrowse new DotNetCommand(s_buildEnv, _testOutput, useDefaultArgs: false) .WithWorkingDirectory(_projectDir!) - .ExecuteWithCapturedOutput($"new {template} {extraArgs}") + .ExecuteWithCapturedOutput($"new {template} -f {DefaultTargetFramework} {extraArgs}") .EnsureSuccessful(); string projectfile = Path.Combine(_projectDir!, $"{id}.csproj"); From cf5d4607c306a6a8ed28efacdc2a273649a46984 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Thu, 21 Sep 2023 16:38:56 -0400 Subject: [PATCH 12/23] Update emsdk dependency to get the workload fix --- eng/Version.Details.xml | 4 ++-- eng/Versions.props | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index ff58b02792a45..c41f2bbfbefd0 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -90,9 +90,9 @@ 89be445dd4936157533ad96bafb95f701430653a - + https://github.com/dotnet/emsdk - bbdbe152659fc5247db1ca1ae398a889e101631d + fc01829cbf76b7bbf48a39161562468715a0a3b4 diff --git a/eng/Versions.props b/eng/Versions.props index 1d48efa5db75e..939f5639553e8 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -236,7 +236,7 @@ Note: when the name is updated, make sure to update dependency name in eng/pipelines/common/xplat-setup.yml like - DarcDependenciesChanged.Microsoft_NET_Workload_Emscripten_Current_Manifest-8_0_100_Transport --> - 9.0.0-alpha.1.23469.6 + 9.0.0-alpha.1.23471.2 $(MicrosoftNETWorkloadEmscriptenCurrentManifest90100TransportVersion) 1.1.87-gba258badda From 2ce50d1177bf3b1d1e17d95f9ec9976bf34bd3b0 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 22 Sep 2023 03:14:18 -0400 Subject: [PATCH 13/23] fix --- .../Wasm.Build.Tests/Templates/WasmTemplateTests.cs | 10 +++++----- src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs b/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs index 08488d487a615..c85c8c6faef7d 100644 --- a/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs +++ b/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs @@ -185,19 +185,19 @@ public void ConsoleBuildThenPublish(string config) [InlineData("Release", false)] [InlineData("Release", true)] public void ConsoleBuildAndRunDefault(string config, bool relinking) - => ConsoleBuildAndRun(config, relinking, string.Empty, DefaultTargetFramework); + => ConsoleBuildAndRun(config, relinking, string.Empty, DefaultTargetFramework, addFrameworkArg: false); [Theory] // [ActiveIssue("https://github.com/dotnet/runtime/issues/79313")] // [InlineData("Debug", "-f net7.0", "net7.0")] [InlineData("Debug", "-f net8.0", "net8.0")] public void ConsoleBuildAndRunForSpecificTFM(string config, string extraNewArgs, string expectedTFM) - => ConsoleBuildAndRun(config, false, extraNewArgs, expectedTFM); + => ConsoleBuildAndRun(config, false, extraNewArgs, expectedTFM, addFrameworkArg: extraNewArgs?.Length == 0); - private void ConsoleBuildAndRun(string config, bool relinking, string extraNewArgs, string expectedTFM) + private void ConsoleBuildAndRun(string config, bool relinking, string extraNewArgs, string expectedTFM, bool addFrameworkArg) { string id = $"{config}_{GetRandomId()}"; - string projectFile = CreateWasmTemplateProject(id, "wasmconsole", extraNewArgs); + string projectFile = CreateWasmTemplateProject(id, "wasmconsole", extraNewArgs, addFrameworkArg: addFrameworkArg); string projectName = Path.GetFileNameWithoutExtension(projectFile); UpdateProgramCS(); @@ -418,7 +418,7 @@ public async Task BrowserBuildAndRun(string extraNewArgs, string targetFramework { string config = "Debug"; string id = $"browser_{config}_{GetRandomId()}"; - CreateWasmTemplateProject(id, "wasmbrowser", extraNewArgs); + CreateWasmTemplateProject(id, "wasmbrowser", extraNewArgs, addFrameworkArg: extraNewArgs.Length == 0); UpdateBrowserMainJs(targetFramework, runtimeAssetsRelativePath); diff --git a/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs b/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs index ada7a82cc64e7..c7392f3dbece9 100644 --- a/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs +++ b/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs @@ -21,7 +21,7 @@ protected WasmTemplateTestBase(ITestOutputHelper output, SharedBuildPerTestClass _provider.BundleDirName = "AppBundle"; } - public string CreateWasmTemplateProject(string id, string template = "wasmbrowser", string extraArgs = "", bool runAnalyzers = true) + public string CreateWasmTemplateProject(string id, string template = "wasmbrowser", string extraArgs = "", bool runAnalyzers = true, bool addFrameworkArg = true) { InitPaths(id); InitProjectDir(_projectDir, addNuGetSourceForLocalPackages: true); @@ -39,9 +39,11 @@ public string CreateWasmTemplateProject(string id, string template = "wasmbrowse """); File.Copy(BuildEnvironment.WasmOverridePacksTargetsPath, Path.Combine(_projectDir, Path.GetFileName(BuildEnvironment.WasmOverridePacksTargetsPath)), overwrite: true); + if (addFrameworkArg) + extraArgs += $" -f {DefaultTargetFramework}"; new DotNetCommand(s_buildEnv, _testOutput, useDefaultArgs: false) .WithWorkingDirectory(_projectDir!) - .ExecuteWithCapturedOutput($"new {template} -f {DefaultTargetFramework} {extraArgs}") + .ExecuteWithCapturedOutput($"new {template} {extraArgs}") .EnsureSuccessful(); string projectfile = Path.Combine(_projectDir!, $"{id}.csproj"); From 54999b02a344d5f3ff1c71647beacc19a2f45b97 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 22 Sep 2023 14:00:08 -0500 Subject: [PATCH 14/23] Add some addtional workarounds for net8 --- .../WorkloadManifest.targets.in | 4 ++-- .../WorkloadManifest.targets.in | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in index e706e7670486b..8ab2e0def1873 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in @@ -145,14 +145,14 @@ - + - + <_MonoWorkloadTargetsMobile>true <_MonoWorkloadRuntimePackPackageVersion>$(_RuntimePackInWorkloadVersionCurrent) <_KnownWebAssemblySdkPackVersion>$(_RuntimePackInWorkloadVersionCurrent) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in index 1fc58552c5481..8abd659b1ae58 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in @@ -64,6 +64,8 @@ + + %(RuntimePackRuntimeIdentifiers);wasi-wasm $(_MonoWorkloadRuntimePackPackageVersion) Microsoft.NETCore.App.Runtime.Mono.multithread.**RID** From 31c8340a4cfd2604f9aa90c5f347ef37ecfb124e Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 22 Sep 2023 14:13:03 -0500 Subject: [PATCH 15/23] Remove extra character --- .../WorkloadManifest.targets.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in index 8ab2e0def1873..7c806d1c1468b 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in @@ -145,7 +145,7 @@ - + From 703b4349fcfcd055aca7ce680f33753f3dcfe738 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 22 Sep 2023 14:07:10 -0400 Subject: [PATCH 16/23] Fix test --- src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs b/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs index c85c8c6faef7d..4462452486768 100644 --- a/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs +++ b/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs @@ -185,7 +185,7 @@ public void ConsoleBuildThenPublish(string config) [InlineData("Release", false)] [InlineData("Release", true)] public void ConsoleBuildAndRunDefault(string config, bool relinking) - => ConsoleBuildAndRun(config, relinking, string.Empty, DefaultTargetFramework, addFrameworkArg: false); + => ConsoleBuildAndRun(config, relinking, string.Empty, DefaultTargetFramework, addFrameworkArg: true); [Theory] // [ActiveIssue("https://github.com/dotnet/runtime/issues/79313")] From f4e1253530dcaa98151b26d55c60fa80a360a472 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 22 Sep 2023 16:12:26 -0500 Subject: [PATCH 17/23] More wasi fixes --- .../WorkloadManifest.targets.in | 11 ++++++++++- .../WorkloadManifest.targets.in | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in index 7c806d1c1468b..a76c10d62c9cf 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in @@ -167,6 +167,15 @@ + + + true + 1.0 + + + + + @@ -216,6 +225,6 @@ Importance="High" /> - diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in index 8abd659b1ae58..096fdf71743fc 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.targets.in @@ -57,7 +57,7 @@ - + <_MonoWorkloadTargetsMobile>true <_MonoWorkloadRuntimePackPackageVersion>$(_RuntimePackInWorkloadVersion8) From 20f4d23b94d83645aa315eed821e4f56df69ef63 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 25 Sep 2023 13:57:21 -0500 Subject: [PATCH 18/23] Add net8 wasi-wasm runtime pack reference --- .../WorkloadManifest.json.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in index 7416faa89cd00..2777717f0edf8 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in @@ -450,6 +450,10 @@ "any": "Microsoft.NETCore.App.Runtime.Mono.multithread.browser-wasm" } }, + "Microsoft.NETCore.App.Runtime.Mono.net8.wasi-wasm" : { + "kind": "framework", + "version": "${PackageVersionNet8}" + }, "Microsoft.NETCore.App.Runtime.net8.win-x64" : { "kind": "framework", "version": "${PackageVersionNet8}", From d78cb0e50e8549569a6bef81361849e037efdf9e Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 25 Sep 2023 15:10:08 -0500 Subject: [PATCH 19/23] Add wasi-experimental-net8 workload --- .../WorkloadManifest.json.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in index 2777717f0edf8..a52b903984804 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.net8.Manifest/WorkloadManifest.json.in @@ -23,6 +23,14 @@ "extends": [ "wasm-tools-net8" ], "platforms": [ "win-x64", "win-arm64", "linux-x64", "osx-x64", "osx-arm64" ] }, + "wasi-experimental-net8": { + "description": ".NET WASI experimental", + "packs": [ + "Microsoft.NETCore.App.Runtime.Mono.net8.wasi-wasm", + ], + "extends": [ "wasi-experimental", "microsoft-net-runtime-mono-tooling-net8" ], + "platforms": [ "win-x64", "win-arm64", "linux-x64", "linux-arm64", "osx-x64", "osx-arm64" ] + }, "microsoft-net-runtime-android-net8": { "abstract": true, "description": "Android Mono Runtime", From c5a9c81c42847674cc497ac05fa8aac37f9e8c83 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Mon, 25 Sep 2023 21:54:09 -0400 Subject: [PATCH 20/23] [wasi] Fix use of workload --- .../WorkloadManifest.Wasi.targets.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in index f6197d5e269b4..7123e9deae75f 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in @@ -1,7 +1,7 @@ - true + true From 4e0ed33c29f90879897aca499b0226d9d49157ba Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Mon, 25 Sep 2023 22:16:24 -0400 Subject: [PATCH 21/23] [wasm] WBT: Fix test --- .../wasm/Wasm.Build.Tests/WorkloadTests.cs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs b/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs index fa36165bab3bc..6becc480b7e2d 100644 --- a/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs +++ b/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; using System.Runtime.InteropServices; +using System.Text.RegularExpressions; using System.Xml; using System.Xml.Serialization; using Xunit; @@ -58,13 +59,20 @@ public void FilesInUnixFilesPermissionsXmlExist() // have the unixFilePermissions for that // Expect just the emscripten ones here for now - // linux doesn't have Emscripten.Python package, so only 2 there int expectedPermFileCount = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? 4 : 5; - int permFileCount = unixPermFiles.Count(); - if (permFileCount != expectedPermFileCount) - throw new XunitException($"Expected to find {expectedPermFileCount} UnixFilePermissions.xml files, but got {permFileCount}." - + $"{Environment.NewLine}Files: {string.Join(", ", unixPermFiles)}"); + // extract pack names from ./artifacts/bin/dotnet-latest/packs/Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.linux-x64/8.0.0-rtm.23470.1/data/UnixFilePermissions.xml + var packNames = unixPermFiles.Select(f => Path.GetFileName(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(f))))).ToArray(); + + Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.")); + Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Node.")); + Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.")); + + // linux doesn't have Emscripten.Python package, so only 2 there + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Python.")); + + Assert.Contains(packNames, name => Regex.IsMatch(name!, "Microsoft.NETCore.App.Runtime.AOT\\..*\\.Cross.browser-wasm")); } } From 4977c0a02a09bcfdc76914061601402768255ada Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Tue, 26 Sep 2023 00:30:02 -0400 Subject: [PATCH 22/23] wasi: Allow wasi-wasm runtimepacks even when targeting net8 --- .../WorkloadManifest.Wasi.targets.in | 5 +++-- .../WorkloadManifest.targets.in | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in index 7123e9deae75f..6828a880c7420 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.Wasi.targets.in @@ -1,10 +1,11 @@ - + true + true - + $(WasiNativeWorkloadAvailable) diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in index a76c10d62c9cf..953ca2b03351a 100644 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in +++ b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest/WorkloadManifest.targets.in @@ -17,7 +17,7 @@ $(WasmNativeWorkload8) - + <_BrowserWorkloadNotSupportedForTFM Condition="$([MSBuild]::VersionLessThan($(TargetFrameworkVersion), '6.0'))">true @@ -176,7 +176,7 @@ - + %(RuntimePackRuntimeIdentifiers);wasi-wasm From 93bfe53789d6a8bd4f57bd16aa35ed299df340b1 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Tue, 26 Sep 2023 00:48:34 -0400 Subject: [PATCH 23/23] fix test --- src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs b/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs index 6becc480b7e2d..009da0c7bb1ae 100644 --- a/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs +++ b/src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs @@ -64,13 +64,13 @@ public void FilesInUnixFilesPermissionsXmlExist() // extract pack names from ./artifacts/bin/dotnet-latest/packs/Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.linux-x64/8.0.0-rtm.23470.1/data/UnixFilePermissions.xml var packNames = unixPermFiles.Select(f => Path.GetFileName(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(f))))).ToArray(); - Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Cache.")); - Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Node.")); - Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Sdk.")); + Assert.Contains(packNames, name => Regex.IsMatch(name!, "Microsoft\\.NET\\.Runtime\\.Emscripten\\.[0-9\\.]+\\.Cache\\.")); + Assert.Contains(packNames, name => Regex.IsMatch(name!, "Microsoft\\.NET\\.Runtime\\.Emscripten\\.[0-9\\.]+\\.Node\\.")); + Assert.Contains(packNames, name => Regex.IsMatch(name!, "Microsoft\\.NET\\.Runtime\\.Emscripten\\.[0-9\\.]+\\.Sdk\\.")); // linux doesn't have Emscripten.Python package, so only 2 there if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) - Assert.Contains(packNames, name => name!.StartsWith("Microsoft.NET.Runtime.Emscripten.3.1.34.Python.")); + Assert.Contains(packNames, name => Regex.IsMatch(name!, "Microsoft\\.NET\\.Runtime\\.Emscripten\\.[0-9\\.]+\\.Python\\.")); Assert.Contains(packNames, name => Regex.IsMatch(name!, "Microsoft.NETCore.App.Runtime.AOT\\..*\\.Cross.browser-wasm")); }