-
Notifications
You must be signed in to change notification settings - Fork 0
/
hithread.csproj
27 lines (24 loc) · 1.02 KB
/
hithread.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<WasmMainJSPath>main.js</WasmMainJSPath>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- use the threaded build of the .NET runtime for WebAssembly -->
<WasmEnableThreads>true</WasmEnableThreads>
</PropertyGroup>
<!-- optional. Trimming and aot compilation work with threading -->
<PropertyGroup Condition="true">
<PublishTrimmed>true</PublishTrimmed>
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup>
<ItemGroup>
<WasmExtraFilesToDeploy Include="index.html" />
<WasmExtraFilesToDeploy Include="main.js" />
</ItemGroup>
<ItemGroup>
<!-- provides reference assemblies that will prevent warnings about new Thread() and other threading APIs being unavailable on the browser -->
<PackageReference Include="Microsoft.NET.WebAssembly.Threading" Version="7.0.0-rc.2.*" />
</ItemGroup>
</Project>