Skip to content

Commit

Permalink
add dev note
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Apr 13, 2019
1 parent 878d93e commit b93efa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/webassembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ End Module
#### 2. Run wasm compiler

Current version VB.NET wasm compiler just supports compile a single source file. A VB.NET project with multiple source file will be supported in the future.
Current version VB.NET wasm compiler just supports compile a single source file. A VB.NET project with multiple source file will be supported in the future. For compile a VB.NET application, create a console application, and add reference to ``VisualBasic.Wasm.dll``, at last write these code for compile your VisualBasic source file:

```vbnet
Dim vb = "/path/to/app.vb"
Expand All @@ -64,6 +64,8 @@ Dim [module] = Wasm.CreateModule(vb)
[module].HexDump(True).SaveTo("HelloWorld.dmp")
```

> Compiler project source file available at: https://github.com/GCModeller-Cloud/data.ts/tree/878d93e4d011f666d0dc4dbc0062a6fd1685bc9b/TsBuild/Wasm
#### 3. Run VB.NET application from javascript environment

Add script reference to ``visualbasic.wasm.js``, and then running VB.NET application on web browser or nodejs from a javascript loader like:
Expand Down

0 comments on commit b93efa7

Please sign in to comment.