Skip to content

Instantly share code, notes, and snippets.

@naricc
Created June 17, 2020 21:25
Show Gist options
  • Save naricc/22dea6c8f47d2f18acf8ea74e5f44daf to your computer and use it in GitHub Desktop.
Save naricc/22dea6c8f47d2f18acf8ea74e5f44daf to your computer and use it in GitHub Desktop.
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="BuildApp">
<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputPath>bin</OutputPath>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<TargetFramework>netcoreapp5.0</TargetFramework>
<TargetArchitecture>wasm</TargetArchitecture>
<TargetOS>Browser</TargetOS>
<RuntimePackDir>/Users/naricc/workspace/runtime-webassembly-ci/artifacts/bin/lib-runtime-packs/net5.0-Browser-Release-wasm/runtimes/browser-wasm</RuntimePackDir>
<AppDir>$(MSBuildThisFileDirectory)\bin\Release\publish</AppDir>
<AssemblyName>5d263739-1367-4c42-b1ef-a7f732877493</AssemblyName>
</PropertyGroup>
<UsingTask TaskName="WasmAppBuilder"
AssemblyFile="/Users/naricc/workspace/runtime-webassembly-ci/artifacts/bin/WasmAppBuilder/Debug/net5.0/WasmAppBuilder.dll"/>
<Target Name="BuildApp" DependsOnTargets="Build">
<ItemGroup>
<AssemblySearchPaths Include="bin"/>
<AssemblySearchPaths Include="$(RuntimePackDir)\native"/>
<AssemblySearchPaths Include="$(RuntimePackDir)\lib\$(NetCoreAppCurrent)"/>
</ItemGroup>
<WasmAppBuilder
AppDir="$(AppDir)"
RuntimePackDir="$(RuntimePackDir)"
MainAssembly="bin\WasmSample.dll"
MainJS="/Users/naricc/workspace/runtime-webassembly-ci/src/mono/wasm/runtime-test.js"
AssemblySearchPaths="@(AssemblySearchPaths)"/>
<Exec Command="chmod a+x $(AppDir)/run-v8.sh" />
</Target>
<ItemGroup>
<Compile Include="5d263739-1367-4c42-b1ef-a7f732877493.notcs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="/Users/naricc/workspace/BenchmarkDotNet-wasm/samples/BenchmarkDotNet.Samples/BenchmarkDotNet.Samples.csproj" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment