Skip to content

use wit version 1.0.0 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ jobs:

- name: "Set up Dotnet SDK"
run: |
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:dotnet/backports
sudo apt-get update
sudo apt-get install dotnet-sdk-9.0 -y
wget https://download.visualstudio.microsoft.com/download/pr/c526dc3b-5240-4449-ba07-ed9a3610fe09/442f1cf6e4e832eea0b045f9e108c8b7/dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz -C $HOME/dotnet

- name: Install edgee
uses: edgee-cloud/[email protected]

- name: Build component
run: |
export DOTNET_ROOT=$HOME/dotnet
export PATH=$HOME/dotnet:$PATH
edgee components build

- name: Verify .wasm file exists
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is an example of a C# Edgee Component.
## Setup
Requirements:
- [edgee-cli](https://github.com/edgee-cloud/edgee)
- dotnet SDK 9.0
- [dotnet SDK 10.0](https://dotnet.microsoft.com/en-us/download/dotnet/10.0)
- Modify the csproj file to match your OS:
- On Linux
```dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --prerelease```
Expand Down
4 changes: 2 additions & 2 deletions edgee-component.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ description = "Example CSharp component for data collection"
documentation = "https://github.com/edgee-cloud/example-cs-component"
repository = "https://github.com/edgee-cloud/example-cs-component"
language = "CSharp"
wit-version = "0.5.0"
wit-version = "1.0.0"

[component.build]
command = "dotnet build && mv ./bin/Debug/net9.0/wasi-wasm/publish/example-cs-component.wasm ./dc_component.wasm"
command = "dotnet build && mv ./bin/Debug/net10.0/wasi-wasm/publish/example-cs-component.wasm ./dc_component.wasm"
output_path = "./dc_component.wasm"

[component.settings.example]
Expand Down
2 changes: 1 addition & 1 deletion example-cs-component.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>example_cs_component</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down