Skip to content

Commit

Permalink
Work around the import troubles
Browse files Browse the repository at this point in the history
  • Loading branch information
lewing committed Aug 20, 2022
1 parent ea8110e commit 4ac41be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project>
<PropertyGroup>
<WasmNativeWorkload>true</WasmNativeWorkload>
<WasmNativeWorkload Condition="'$(WasmNativeWorkload)' == ''">net7.0</WasmNativeWorkload>
<WasmNativeWorkload7>true</WasmNativeWorkload7>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
- UsingBrowserRuntimeWorkload
- UsingBlazorAOTWorkloadManifest
-->
<PropertyGroup Condition="'$(TargetsNet6)' == 'true' and '$(RuntimeIdentifier)' == 'browser-wasm'">
<WasmNativeWorkload Condition="'$(WasmNativeWorkload)' != 'true'">false</WasmNativeWorkload>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetsNet6)' == 'true' and '$(RuntimeIdentifier)' == 'browser-wasm' AND '$(UsingBrowserRuntimeWorkload)' == ''">
<!-- $(WasmBuildNative)==true is needed to enable workloads, when using native references, without AOT -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
- UsingBrowserRuntimeWorkload
- UsingBlazorAOTWorkloadManifest
-->
<PropertyGroup Condition="'$(TargetsNet7)' == 'true' and '$(RuntimeIdentifier)' == 'browser-wasm'">
<WasmNativeWorkload Condition="'$(WasmNativeWorkload7)' == 'true' and '$(WasmNativeWorkload)' != 'false'">true</WasmNativeWorkload>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetsNet7)' == 'true' and '$(RuntimeIdentifier)' == 'browser-wasm' AND '$(UsingBrowserRuntimeWorkload)' == ''">
<!-- $(WasmBuildNative)==true is needed to enable workloads, when using native references, without AOT -->
Expand All @@ -26,6 +29,7 @@
<PropertyGroup Condition="'$(TargetsNet7)' == 'true' and '$(_BrowserWorkloadDisabled7)' == 'true'">
<UsingBrowserRuntimeWorkload>false</UsingBrowserRuntimeWorkload>
<WasmNativeWorkload7>false</WasmNativeWorkload7>
<WasmNativeWorkload>false</WasmNativeWorkload>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetsNet7)' == 'true' and '$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(UsingBrowserRuntimeWorkload)' == 'true'">
Expand Down

0 comments on commit 4ac41be

Please sign in to comment.