File tree 4 files changed +7
-8
lines changed
4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,16 @@ jobs:
15
15
16
16
- name : " Set up Dotnet SDK"
17
17
run : |
18
- sudo apt-get update
19
- sudo apt-get install software-properties-common -y
20
- sudo add-apt-repository ppa:dotnet/backports
21
- sudo apt-get update
22
- sudo apt-get install dotnet-sdk-9.0 -y
18
+ 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
19
+ mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz -C $HOME/dotnet
23
20
24
21
- name : Install edgee
25
22
uses :
edgee-cloud/[email protected]
26
23
27
24
- name : Build component
28
25
run : |
26
+ export DOTNET_ROOT=$HOME/dotnet
27
+ export PATH=$HOME/dotnet:$PATH
29
28
edgee components build
30
29
31
30
- name : Verify .wasm file exists
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ This is an example of a C# Edgee Component.
16
16
## Setup
17
17
Requirements:
18
18
- [ edgee-cli] ( https://github.com/edgee-cloud/edgee )
19
- - dotnet SDK 9.0
19
+ - [ dotnet SDK 10.0 ] ( https://dotnet.microsoft.com/en-us/download/dotnet/10.0 )
20
20
- Modify the csproj file to match your OS:
21
21
- On Linux
22
22
``` dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --prerelease ```
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ language = "CSharp"
12
12
wit-version = " 1.0.0"
13
13
14
14
[component .build ]
15
- command = " dotnet build && mv ./bin/Debug/net9 .0/wasi-wasm/publish/example-cs-component.wasm ./dc_component.wasm"
15
+ command = " dotnet build && mv ./bin/Debug/net10 .0/wasi-wasm/publish/example-cs-component.wasm ./dc_component.wasm"
16
16
output_path = " ./dc_component.wasm"
17
17
18
18
[component .settings .example ]
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<OutputType >Library</OutputType >
5
- <TargetFramework >net9 .0</TargetFramework >
5
+ <TargetFramework >net10 .0</TargetFramework >
6
6
<RootNamespace >example_cs_component</RootNamespace >
7
7
<ImplicitUsings >enable</ImplicitUsings >
8
8
<Nullable >enable</Nullable >
You can’t perform that action at this time.
0 commit comments