Skip to content

Commit

Permalink
[wasm] Add WasmMainJSPath in interpreter projects (#1757)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
radekdoulik authored Jul 29, 2021
1 parent 19cbef2 commit 1a94d4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BenchmarkDotNet/Templates/WasmCsProj.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputPath>bin</OutputPath>
<RuntimeSrcDir>$RUNTIMESRCDIR$</RuntimeSrcDir>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<TargetFramework>$TFM$</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppDir>$(MSBuildThisFileDirectory)\bin\$TFM$\browser-wasm\publish</AppDir>
<AssemblyName>$PROGRAMNAME$</AssemblyName>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<WasmMainJSPath>$(RuntimeSrcDir)\src\mono\wasm\runtime-test.js</WasmMainJSPath>
<MicrosoftNetCoreAppRuntimePackDir>$RUNTIMEPACK$</MicrosoftNetCoreAppRuntimePackDir>
<UsingBrowserRuntimeWorkload>false</UsingBrowserRuntimeWorkload>
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
Expand Down

0 comments on commit 1a94d4d

Please sign in to comment.