Skip to content

Instantly share code, notes, and snippets.

@naricc
Created June 15, 2020 23:05
Show Gist options
  • Save naricc/ebdf01e24501d318cd1c29227886fb65 to your computer and use it in GitHub Desktop.
Save naricc/ebdf01e24501d318cd1c29227886fb65 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>258c502e-34fe-447e-b55a-a56b5f4da6c7</AssemblyName>
</PropertyGroup>
<UsingTask TaskName="WasmAppBuilder"
AssemblyFile="/Users/naricc/workspace/runtime-webassembly-ci/artifacts/bin/WasmAppBuilder/Release/net5.0/publish/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="$(MonoProjectRoot)\wasm\runtime-test.js"
AssemblySearchPaths="@(AssemblySearchPaths"/>
<Exec Command="chmod a+x $(AppDir)/run-v8.sh" />
</Target>
<ItemGroup>
<Compile Include="Program.cs" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment