diff --git a/eng/pipelines/runtime-wasm-perf.yml b/eng/pipelines/runtime-wasm-perf.yml
index 120cc2df85307d..478bbb81f8a4c8 100644
--- a/eng/pipelines/runtime-wasm-perf.yml
+++ b/eng/pipelines/runtime-wasm-perf.yml
@@ -39,7 +39,7 @@ extends:
runProfile: 'v8'
collectHelixLogsScript: ${{ variables._wasmCollectHelixLogsScript }}
onlySanityCheck: true
- #perfForkToUse:
+ #perfForkToUse: - dummy change
#url: https://github.com/radical/performance
#branch: fix-build
#downloadSpecificBuild:
diff --git a/eng/testing/workloads-testing.targets b/eng/testing/workloads-testing.targets
index eb8a84468d9dc0..d205af6fbdfde7 100644
--- a/eng/testing/workloads-testing.targets
+++ b/eng/testing/workloads-testing.targets
@@ -28,6 +28,27 @@
+
+ <_DotNetInstallScriptName Condition="!$([MSBuild]::IsOSPlatform('windows'))">dotnet-install.sh
+ <_DotNetInstallScriptName Condition=" $([MSBuild]::IsOSPlatform('windows'))">dotnet-install.ps1
+
+ <_DotNetInstallScriptPath>$(ArtifactsObjDir)$(_DotNetInstallScriptName)
+
+
+
+ <_DotNetInstallCommand Condition="!$([MSBuild]::IsOSPlatform('windows'))"
+ >$(_DotNetInstallScriptPath) -i $(_SdkWithNoWorkloadPath) -v $(SdkVersionForWorkloadTesting)
+ <_DotNetInstallCommand Condition="$([MSBuild]::IsOSPlatform('windows'))"
+ >$(_DotNetInstallScriptPath) -InstallDir $(_SdkWithNoWorkloadPath) -Version $(SdkVersionForWorkloadTesting)
+
+
+
+ <_DotNetInstallCommand Condition="!$([MSBuild]::IsOSPlatform('windows'))"
+ >$(_DotNetInstallScriptPath) -i $(_SdkWithNoWorkloadPath) -v latest -q daily --channel 9.0
+ <_DotNetInstallCommand Condition="$([MSBuild]::IsOSPlatform('windows'))"
+ >$(_DotNetInstallScriptPath) -InstallDir $(_SdkWithNoWorkloadPath) -Quality daily -Channel 9.0
+
+
<_RuntimePackVersions Include="$(PackageVersion)" EnvVarName="RUNTIME_PACK_VER8" />
+
+
+
<_RuntimePackVersions Include="$(PackageVersionNet7)" EnvVarName="RUNTIME_PACK_VER7" Condition="'$(PackageVersionNet7)' != ''" />
<_RuntimePackVersions Include="$(PackageVersion)" EnvVarName="RUNTIME_PACK_VER7" Condition="'$(PackageVersionNet7)' == ''" />
<_RuntimePackVersions Include="$(PackageVersionNet6)" EnvVarName="RUNTIME_PACK_VER6" />
diff --git a/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs b/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs
index e58e7002a368bd..c9de1408701dc2 100644
--- a/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs
+++ b/src/mono/wasm/Wasm.Build.Tests/WasmTemplateTestBase.cs
@@ -4,6 +4,7 @@
#nullable enable
using System;
+using System.Collections.Generic;
using System.IO;
using System.Text.Json.Nodes;
using Xunit.Abstractions;
@@ -21,7 +22,7 @@ protected WasmTemplateTestBase(ITestOutputHelper output, SharedBuildPerTestClass
_provider.BundleDirName = "AppBundle";
}
- public string CreateWasmTemplateProject(string id, string template = "wasmbrowser", string extraArgs = "", bool runAnalyzers = true, bool addFrameworkArg = true)
+ public string CreateWasmTemplateProject(string id, string template = "wasmbrowser", string extraArgs = "", bool runAnalyzers = true, bool addFrameworkArg = false)
{
InitPaths(id);
InitProjectDir(_projectDir, addNuGetSourceForLocalPackages: true);
@@ -37,7 +38,7 @@ public string CreateWasmTemplateProject(string id, string template = "wasmbrowse
""");
- if (BuildEnvironment.UseWBTOverridePackTargets)
+ if (UseWBTOverridePackTargets)
File.Copy(BuildEnvironment.WasmOverridePacksTargetsPath, Path.Combine(_projectDir, Path.GetFileName(BuildEnvironment.WasmOverridePacksTargetsPath)), overwrite: true);
if (addFrameworkArg)
@@ -89,6 +90,10 @@ private static void UpdateRuntimeconfigTemplateForNode(string projectDir)
string id,
BuildProjectOptions buildProjectOptions)
{
+ if (buildProjectOptions.ExtraBuildEnvironmentVariables is null)
+ buildProjectOptions = buildProjectOptions with { ExtraBuildEnvironmentVariables = new Dictionary() };
+ buildProjectOptions.ExtraBuildEnvironmentVariables["ForceNet8Current"] = "false";
+
(CommandResult res, string logFilePath) = BuildProjectWithoutAssert(id, buildArgs.Config, buildProjectOptions);
if (buildProjectOptions.UseCache)
_buildContext.CacheBuild(buildArgs, new BuildProduct(_projectDir!, logFilePath, true, res.Output));
diff --git a/src/mono/wasi/Wasi.Build.Tests/data/nuget8.config b/src/mono/wasm/Wasm.Build.Tests/data/nuget9.config
similarity index 83%
rename from src/mono/wasi/Wasi.Build.Tests/data/nuget8.config
rename to src/mono/wasm/Wasm.Build.Tests/data/nuget9.config
index dfdc8009c6a5d5..439c0c6101738b 100644
--- a/src/mono/wasi/Wasi.Build.Tests/data/nuget8.config
+++ b/src/mono/wasm/Wasm.Build.Tests/data/nuget9.config
@@ -8,6 +8,7 @@
+
diff --git a/src/mono/wasm/templates/templates/browser/browser.0.csproj b/src/mono/wasm/templates/templates/browser/browser.0.csproj
index 588c5219582125..1bc8c1bdc15c66 100644
--- a/src/mono/wasm/templates/templates/browser/browser.0.csproj
+++ b/src/mono/wasm/templates/templates/browser/browser.0.csproj
@@ -1,6 +1,6 @@
- net8.0
+ net7.0
true