diff options
author | Thays Grazia <thaystg@gmail.com> | 2020-06-19 04:38:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 04:38:07 +0300 |
commit | ea8f106187bd04c74db77ec56b4b27f66676d3df (patch) | |
tree | 9dfbf87add52d084723f95bd8e7535c25e0ef048 /sdks | |
parent | 386ae0405d09ac0c214bea301d0b7852c06a5e9c (diff) |
Fix readme and sample.html. (#19988)
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/docs/getting-started/sample.md | 2 | ||||
-rw-r--r-- | sdks/wasm/sample.cs | 2 | ||||
-rw-r--r-- | sdks/wasm/sample.html | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/sdks/wasm/docs/getting-started/sample.md b/sdks/wasm/docs/getting-started/sample.md index bd0e183d334..f7d108a03bf 100644 --- a/sdks/wasm/docs/getting-started/sample.md +++ b/sdks/wasm/docs/getting-started/sample.md @@ -36,7 +36,7 @@ The WebAssembly SDK includes the sample code that we can use. 1. Compile sample ``` - csc /target:library -out:sample.dll /noconfig /nostdlib /r:$WASM_SDK/wasm-bcl/wasm/mscorlib.dll /r:$WASM_SDK/wasm-bcl/wasm/System.dll /r:$WASM_SDK/wasm-bcl/wasm/System.Core.dll /r:$WASM_SDK/wasm-bcl/wasm/Facades/netstandard.dll /r:$WASM_SDK/wasm-bcl/wasm/System.Net.Http.dll /r:$WASM_SDK/framework/WebAssembly.Bindings.dll /r:$WASM_SDK/framework/System.Net.Http.WebAssemblyHttpHandler.dll dependency.cs sample.cs + csc -define:SAMPLE /target:library -out:sample.dll /noconfig /nostdlib /r:$WASM_SDK/wasm-bcl/wasm/mscorlib.dll /r:$WASM_SDK/wasm-bcl/wasm/System.dll /r:$WASM_SDK/wasm-bcl/wasm/System.Core.dll /r:$WASM_SDK/wasm-bcl/wasm/Facades/netstandard.dll /r:$WASM_SDK/wasm-bcl/wasm/System.Net.Http.dll /r:$WASM_SDK/framework/WebAssembly.Bindings.dll /r:$WASM_SDK/framework/System.Net.Http.WebAssemblyHttpHandler.dll dependency.cs sample.cs ``` 1. Package and publish sample diff --git a/sdks/wasm/sample.cs b/sdks/wasm/sample.cs index 59c4071c13b..363671fce93 100644 --- a/sdks/wasm/sample.cs +++ b/sdks/wasm/sample.cs @@ -23,7 +23,9 @@ public class SampleMath { public static void Run () { +#if SAMPLE == false DebuggerTests.EntryClass.run (); +#endif } } diff --git a/sdks/wasm/sample.html b/sdks/wasm/sample.html index 8117ef8ae6d..f3bf4390ce4 100644 --- a/sdks/wasm/sample.html +++ b/sdks/wasm/sample.html @@ -30,7 +30,7 @@ }, init: function () { - this.int_add = Module.mono_bind_static_method ("[sample] Math:IntAdd"); + this.int_add = Module.mono_bind_static_method ("[sample] SampleMath:IntAdd"); this.output = document.getElementById ("output"); this.button = document.getElementById ("button"); |