Skip to content

Commit 1a94d4d

Browse files
authored
[wasm] Add WasmMainJSPath in interpreter projects (#1757)
This sohuld fix errors like: performance/tools/dotnet/x64/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/6.0.0-rc.1.21378.3/Sdk/WasmApp.targets(139,5): error : $(WasmMainJSPath) property needs to be set
1 parent 19cbef2 commit 1a94d4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/BenchmarkDotNet/Templates/WasmCsProj.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<OutputPath>bin</OutputPath>
5+
<RuntimeSrcDir>$RUNTIMESRCDIR$</RuntimeSrcDir>
56
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
67
<TargetFramework>$TFM$</TargetFramework>
78
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
89
<AppDir>$(MSBuildThisFileDirectory)\bin\$TFM$\browser-wasm\publish</AppDir>
910
<AssemblyName>$PROGRAMNAME$</AssemblyName>
1011
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
12+
<WasmMainJSPath>$(RuntimeSrcDir)\src\mono\wasm\runtime-test.js</WasmMainJSPath>
1113
<MicrosoftNetCoreAppRuntimePackDir>$RUNTIMEPACK$</MicrosoftNetCoreAppRuntimePackDir>
1214
<UsingBrowserRuntimeWorkload>false</UsingBrowserRuntimeWorkload>
1315
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>

0 commit comments

Comments
 (0)