mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-21 07:39:41 -10:00
1.2 KiB
1.2 KiB
Testing Workloads
Workloads based on packages in artifacts can be installed, and used for testing.
-
This is done by installing a specified SDK version (
$(SdkVersionForWorkloadTesting)) inartifacts/bin/dotnet-workload. -
Then the manifest for the workload in
@(WorkloadIdForTesting)is installed- Then workload packs are installed
- packs, or manifests not generated by
runtime, are restored from nuget
-
The SDK is installed by
ProvisionSdkForWorkloadTestingtarget -
and the workload is installed by
InstallWorkloadUsingArtifactstarget, using theInstallWorkloadFromArtifactstask -
@(WorkloadIdForTesting):
Example for wasm:
<WorkloadIdForTesting Include="wasm-tools"
Name="microsoft.net.workload.mono.toolchain"
ManifestName="Microsoft.NET.Workload.Mono.ToolChain"
Version="$(PackageVersion)"
VersionBand="$(SdkBandVersion)" />
- Currently, this is used only by
src/tests/BuildWasmApps/Wasm.Build.Tests
Limitations:
- The cross compiler package is built manually from the
InstallWorkloadUsingArtifactstarget