https://github.com/extism/c-sharp-pdk-template
https://github.com/extism/c-sharp-pdk-template
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/extism/c-sharp-pdk-template
- Owner: extism
- Created: 2024-04-24T18:11:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T11:12:35.000Z (over 1 year ago)
- Last Synced: 2025-10-25T07:41:39.966Z (10 months ago)
- Language: C#
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extism C# PDK Plugin
See more documentation at https://github.com/extism/dotnet-pdk and
[join us on Discord](https://extism.org/discord) for more help.
## Build and run
```
dotnet build ./Plugin.csproj
extism call ./bin/Debug/net8.0/wasi-wasm/AppBundle/Plugin.wasm greet --wasi --input="Steve"
# => Hello, Steve!
extism call ./bin/Debug/net8.0/wasi-wasm/AppBundle/Plugin.wasm add --wasi --input='{"a": 20, "b": 21}'
# => {"Result":41}
```
## Publish
```
dotnet publish ./Plugin.csproj
```
Now you can find a trimmed `Plugin.wasm` file in `bin/Release/net8.0/wasi-wasm/AppBundle`