You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,17 @@ Then, add the [Extism.Sdk NuGet package](https://www.nuget.org/packages/Extism.S
16
16
dotnet add package Extism.Sdk
17
17
```
18
18
19
+
### PowerShell
20
+
21
+
Open a PowerShell console and detect the Common Language Runtime (CLR) major version with the command
22
+
```
23
+
[System.Environment]::Version
24
+
```
25
+
26
+
Download the [Extism.Sdk NuGet package](https://www.nuget.org/packages/Extism.Sdk) and change the extension from nupkg to zip. Open the zip file and go into the lib folder. Choose the net folder in dependency of the CLR major version and open it. Copy the file Extism.sdk.dll in your PowerShell script directory.
27
+
28
+
Download the [Extism native runtime package](https://www.nuget.org/packages/Extism.runtime.all#dependencies-body-tab) in dependency of your operating system and change the extension from nupkg to zip. Open the zip file and go into the runtimes folder. At the end of the path you will find a file with the name libextism.so (shared object) or extism.dll (dynamic link library). Copy this file in your PowerShell script directory.
29
+
19
30
## Getting Started
20
31
21
32
This guide should walk you through some of the concepts in Extism and this .NET library.
The primary concept in Extism is the [plug-in](https://extism.org/docs/concepts/plug-in). You can think of a plug-in as a code module stored in a `.wasm` file.
@@ -57,6 +75,22 @@ let manifest = Manifest(new UrlWasmSource(uri))
57
75
let plugin = new Plugin(manifest, Array.Empty<HostFunction>(), withWasi = true)
All exports have a simple interface of optional bytes in, and optional bytes out. This plug-in happens to take a string and return a JSON encoded string with a report of results.
0 commit comments