|
23 | 23 | <WasmIgnoreNet6WorkloadInstallErrors Condition="'$(WasmIgnoreNet6WorkloadInstallErrors)' == ''">true</WasmIgnoreNet6WorkloadInstallErrors> |
24 | 24 | <WasmIgnoreNet6WorkloadInstallErrors Condition="'$(WasmIgnoreNet6WorkloadInstallErrors)' != 'true'">false</WasmIgnoreNet6WorkloadInstallErrors> |
25 | 25 | <!--<InstallWorkloadUsingArtifactsDependsOn>_GetWorkloadsToInstall;$(InstallWorkloadUsingArtifactsDependsOn)</InstallWorkloadUsingArtifactsDependsOn>--> |
26 | | - <GetWorkloadInputsDependsOn>_GetWorkloadsToInstall;$(GetWorkloadInputsDependsOn)</GetWorkloadInputsDependsOn> |
27 | 26 | <!-- '/.dockerenv' - is to check if this is running in a codespace --> |
28 | 27 | <InstallChromeForTests Condition="'$(InstallChromeForTests)' == '' and |
29 | 28 | ('$(ContinuousIntegrationBuild)' != 'true' or Exists('/.dockerenv')) and |
|
33 | 32 | ($([MSBuild]::IsOSPlatform('windows')) or $([MSBuild]::IsOSPlatform('linux')))" |
34 | 33 | >true</InstallV8ForTests> |
35 | 34 |
|
36 | | - <GetNuGetsToBuildForWorkloadTestingDependsOn>_GetRuntimePackNuGetsToBuild;_GetNugetsForAOT;$(GetNuGetsToBuildForWorkloadTestingDependsOn)</GetNuGetsToBuildForWorkloadTestingDependsOn> |
37 | 35 | <_BundleAOTTestWasmAppForHelixDependsOn>$(_BundleAOTTestWasmAppForHelixDependsOn);PrepareForWasmBuildApp;_PrepareForAOTOnHelix</_BundleAOTTestWasmAppForHelixDependsOn> |
38 | 36 | <WasmEnableLegacyJsInterop Condition="'$(WasmEnableLegacyJsInterop)' == ''">true</WasmEnableLegacyJsInterop> |
39 | 37 | <UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">false</UseSystemResourceKeys> |
|
272 | 270 | <SetScriptCommands Condition="'$(IsBrowserWasmProject)' == 'true'" Include="set RuntimeIdentifier=browser-wasm" /> |
273 | 271 | </ItemGroup> |
274 | 272 | </Target> |
275 | | - |
276 | | - <Target Name="_GetWorkloadsToInstall" DependsOnTargets="_SetPackageVersionForWorkloadsTesting" Returns="@(WorkloadIdForTesting);@(WorkloadCombinationsToInstall)"> |
277 | | - <ItemGroup> |
278 | | - <WorkloadIdForTesting Include="wasm-tools;wasm-experimental" |
279 | | - ManifestName="Microsoft.NET.Workload.Mono.ToolChain.Current" |
280 | | - Variant="latest" |
281 | | - Version="$(PackageVersionForWorkloadManifests)" /> |
282 | | - |
283 | | - <WorkloadIdForTesting Include="wasm-tools-net8;wasm-experimental-net8" |
284 | | - ManifestName="Microsoft.NET.Workload.Mono.ToolChain.net8" |
285 | | - Variant="net8" |
286 | | - Version="$(PackageVersionForWorkloadManifests)" /> |
287 | | - |
288 | | - <WorkloadIdForTesting Include="wasm-tools-net7;wasm-experimental-net7" |
289 | | - ManifestName="Microsoft.NET.Workload.Mono.ToolChain.net7" |
290 | | - Variant="net7" |
291 | | - Version="$(PackageVersionForWorkloadManifests)" |
292 | | - Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" /> |
293 | | - |
294 | | - <WorkloadIdForTesting Include="wasm-tools-net6" |
295 | | - ManifestName="Microsoft.NET.Workload.Mono.ToolChain.net6" |
296 | | - Variant="net6" |
297 | | - Version="$(PackageVersionForWorkloadManifests)" |
298 | | - IgnoreErrors="$(WasmIgnoreNet6WorkloadInstallErrors)" |
299 | | - Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" /> |
300 | | - |
301 | | - <WorkloadCombinationsToInstall Include="latest" Variants="latest;net8" /> |
302 | | - <WorkloadCombinationsToInstall Include="net7" Variants="net7" Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" /> |
303 | | - <WorkloadCombinationsToInstall Include="net7+latest" Variants="net7;latest" Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" /> |
304 | | - <!--<WorkloadCombinationsToInstall Include="net6" Variants="net6" />--> |
305 | | - <!--<WorkloadCombinationsToInstall Include="net6+7" Variants="net6;net7" />--> |
306 | | - <!--<WorkloadCombinationsToInstall Include="none" />--> |
307 | | - </ItemGroup> |
308 | | - </Target> |
309 | | - |
310 | | - <!-- For local builds, only one of the 3 required runtime packs might be available. In that case, |
311 | | - build the other nugets with the *same runtime* but different names. |
312 | | - --> |
313 | | - <Target Name="_GetRuntimePackNuGetsToBuild" Condition="'$(WasmSkipMissingRuntimePackBuild)' != 'true'" Returns="@(_NuGetsToBuild)"> |
314 | | - <PropertyGroup> |
315 | | - <_DefaultBuildVariant Condition="'$(MonoWasmBuildVariant)' == 'multithread'">.multithread.</_DefaultBuildVariant> |
316 | | - <_DefaultBuildVariant Condition="'$(_DefaultBuildVariant)' == ''">.</_DefaultBuildVariant> |
317 | | - |
318 | | - <_DefaultRuntimePackNuGetPath>$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono$(_DefaultBuildVariant)$(RuntimeIdentifier).$(PackageVersionForWorkloadManifests).nupkg</_DefaultRuntimePackNuGetPath> |
319 | | - </PropertyGroup> |
320 | | - |
321 | | - <ItemGroup> |
322 | | - <_RuntimePackNugetAvailable Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.$(RuntimeIdentifier).*$(PackageVersionForWorkloadManifests).nupkg" /> |
323 | | - <_RuntimePackNugetAvailable Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.*.$(RuntimeIdentifier).*$(PackageVersionForWorkloadManifests).nupkg" /> |
324 | | - <_RuntimePackNugetAvailable Remove="@(_RuntimePackNugetAvailable)" Condition="$([System.String]::new('%(_RuntimePackNugetAvailable.FileName)').EndsWith('.symbols'))" /> |
325 | | - </ItemGroup> |
326 | | - |
327 | | - <Error Condition="@(_RuntimePackNugetAvailable -> Count()) != 2 and @(_RuntimePackNugetAvailable -> Count()) != 1" |
328 | | - Text="Expected to find either one or two in $(LibrariesShippingPackagesDir): @(_RuntimePackNugetAvailable->'%(FileName)%(Extension)')" /> |
329 | | - |
330 | | - <ItemGroup> |
331 | | - <_BuildVariants Include="multithread" Condition="'$(_DefaultBuildVariant)' != '.multithread.'" /> |
332 | | - |
333 | | - <_NuGetsToBuild Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.%(_BuildVariants.Identity).$(RuntimeIdentifier).$(PackageVersionForWorkloadManifests).nupkg" |
334 | | - Project="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj" |
335 | | - Dependencies="$(_DefaultRuntimePackNuGetPath)" |
336 | | - Properties="@(_DefaultPropsForNuGetBuild, ';');MonoWasmBuildVariant=%(_BuildVariants.Identity)" |
337 | | - Descriptor="runtime pack for %(_BuildVariants.Identity)" |
338 | | - Condition="'%(_BuildVariants.Identity)' != ''"/> |
339 | | - |
340 | | - <!-- add for non-threaded runtime also --> |
341 | | - <_NuGetsToBuild Include="$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.Mono.$(RuntimeIdentifier).$(PackageVersionForWorkloadManifests).nupkg" |
342 | | - Project="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.sfxproj" |
343 | | - Properties="@(_DefaultPropsForNuGetBuild, ';');MonoWasmBuildVariant=" |
344 | | - Dependencies="$(_DefaultRuntimePackNuGetPath)" |
345 | | - Descriptor="single threaded runtime pack" |
346 | | - Condition="'$(_DefaultBuildVariant)' != '.'" /> |
347 | | - </ItemGroup> |
348 | | - |
349 | | - <Message |
350 | | - Condition="@(_RuntimePackNugetAvailable -> Count()) == 1" |
351 | | - Importance="High" |
352 | | - Text=" |
353 | | - ******************** |
354 | | -
|
355 | | - Note: Could not find the expected two runtime packs in $(LibrariesShippingPackagesDir). Found @(_RuntimePackNugetAvailable->'%(FileName)%(Extension)', ', ') . |
356 | | - To support local builds, the same runtime pack will be built with the other variant names. |
357 | | - To disable this behavior, pass `-p:WasmSkipMissingRuntimePackBuild=true` . |
358 | | -
|
359 | | - *******************" /> |
360 | | - </Target> |
361 | 273 | </Project> |
0 commit comments