Skip to content

Commit 7ad52b4

Browse files
committed
use NET10.0 preview according to components wit documentation
1 parent 18b19a0 commit 7ad52b4

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/check.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@ jobs:
1515

1616
- name: "Set up Dotnet SDK"
1717
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
2320
2421
- name: Install edgee
2522
uses: edgee-cloud/[email protected]
2623

2724
- name: Build component
2825
run: |
26+
export DOTNET_ROOT=$HOME/dotnet
27+
export PATH=$HOME/dotnet:$PATH
2928
edgee components build
3029
3130
- name: Verify .wasm file exists

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This is an example of a C# Edgee Component.
1616
## Setup
1717
Requirements:
1818
- [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)
2020
- Modify the csproj file to match your OS:
2121
- On Linux
2222
```dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --prerelease```

edgee-component.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ language = "CSharp"
1212
wit-version = "1.0.0"
1313

1414
[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"
1616
output_path = "./dc_component.wasm"
1717

1818
[component.settings.example]

example-cs-component.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Library</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<RootNamespace>example_cs_component</RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)