Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sdks
diff options
context:
space:
mode:
authorThays Grazia <thaystg@gmail.com>2020-06-19 04:38:07 +0300
committerGitHub <noreply@github.com>2020-06-19 04:38:07 +0300
commitea8f106187bd04c74db77ec56b4b27f66676d3df (patch)
tree9dfbf87add52d084723f95bd8e7535c25e0ef048 /sdks
parent386ae0405d09ac0c214bea301d0b7852c06a5e9c (diff)
Fix readme and sample.html. (#19988)
Diffstat (limited to 'sdks')
-rw-r--r--sdks/wasm/docs/getting-started/sample.md2
-rw-r--r--sdks/wasm/sample.cs2
-rw-r--r--sdks/wasm/sample.html2
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");