Skip to content

Commit 3b84d02

Browse files
authored
Merge pull request #82 from jsturtevant/update-to-use-net10
Use dotnet 10 preview sdk
2 parents 820764e + 2408b02 commit 3b84d02

File tree

25 files changed

+32
-32
lines changed

25 files changed

+32
-32
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Build on ${{ matrix.os }} with Dotnet ${{ matrix.dotnet }}
1717
strategy:
1818
matrix:
19-
dotnet: [ '9.x']
19+
dotnet: [ '10.x']
2020
os: [ubuntu-latest, windows-latest]
2121
steps:
2222
- uses: actions/checkout@v4
@@ -51,5 +51,5 @@ jobs:
5151
name: nuget-packages
5252
path: artifacts/*.nupkg
5353
if-no-files-found: error
54-
if: ${{ matrix.dotnet == '9.x' && matrix.os == 'windows-latest' }}
54+
if: ${{ matrix.dotnet == '10.x' && matrix.os == 'windows-latest' }}
5555

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup .NET
2929
uses: actions/setup-dotnet@v4
3030
with:
31-
dotnet-version: 9.x
31+
dotnet-version: 10.x
3232
- name: Download artifacts
3333
uses: actions/download-artifact@v4
3434
with:

Directory.Build.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<NoWarn>$(NoWarn);NU1507</NoWarn>
1010

1111
<!-- tool versions -->
12-
<WasmToolsVersion>1.227.0</WasmToolsVersion>
12+
<WasmToolsVersion>1.227.1</WasmToolsVersion>
1313
<WacVersion>v0.6.1</WacVersion>
14-
<PrebuiltWitBindgenVersion>0.40.0</PrebuiltWitBindgenVersion>
14+
<PrebuiltWitBindgenVersion>0.41.0</PrebuiltWitBindgenVersion>
1515
<PrebuildWkgVersion>0.10.0</PrebuildWkgVersion>
1616

1717
<!-- test artifacts -->

Directory.Packages.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
</PropertyGroup>
55
<ItemGroup>
66
<!-- find latest versions at https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-experimental by name of package -->
7-
<PackageVersion Include="Microsoft.DotNet.ILCompiler.LLVM" Version="10.0.0-alpha.1.25118.1" />
8-
<PackageVersion Include="runtime.$(NETCoreSdkPortableRuntimeIdentifier).Microsoft.DotNet.ILCompiler.LLVM" Version="10.0.0-alpha.1.25118.1" />
7+
<PackageVersion Include="Microsoft.DotNet.ILCompiler.LLVM" Version="10.0.0-alpha.1.25162.1" />
8+
<PackageVersion Include="runtime.$(NETCoreSdkPortableRuntimeIdentifier).Microsoft.DotNet.ILCompiler.LLVM" Version="10.0.0-alpha.1.25162.1" />
99

1010
<!-- Tests -->
1111
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="[17.12.0,)" />

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ With this package, you can add one NuGet reference. The build output is fully AO
2424

2525
### 1. Set up SDKs
2626

27-
If you don't already have it, install [.NET 9+ SDK](https://dotnet.microsoft.com/en-us/download/dotnet/9.0)
27+
If you don't already have it, install [.NET 10+ preview SDK](https://dotnet.microsoft.com/en-us/download/dotnet/10.0)
2828

2929
### 2. Install template and build
3030

@@ -39,7 +39,7 @@ dotnet build MyApp
3939
If you have a recent version of [wasmtime](https://github.com/bytecodealliance/wasmtime/releases) on your path, you can now run
4040

4141
```bash
42-
wasmtime ./MyApp/bin/Debug/net9.0/wasi-wasm/publish/MyApp.wasm
42+
wasmtime ./MyApp/bin/Debug/net10.0/wasi-wasm/publish/MyApp.wasm
4343
Hello world from compontize-dotnet!
4444
```
4545

@@ -200,7 +200,7 @@ By default the project will find all wit files and execute wit-bindgen against e
200200

201201
### Configuring location of generaged wit files
202202

203-
By default the wit files are generated under the itermediate path `$(IntermediateOutputPath)wit_bindgen` which is by default at a location like `\obj\Debug\net9.0\wit_bindgen`. This means you can't really see the files and they will be ignored and not checked in to source by default (assuming you have a standard .net `.gitignore`) but intillisense will work.
203+
By default the wit files are generated under the itermediate path `$(IntermediateOutputPath)wit_bindgen` which is by default at a location like `\obj\Debug\net10.0\wit_bindgen`. This means you can't really see the files and they will be ignored and not checked in to source by default (assuming you have a standard .net `.gitignore`) but intillisense will work.
204204

205205
If you would like to have the files in a more discoverable place and potentially check the source files in you can configure the output location with a folder name and location of your choice, for example the following will create a folder `genererated/wit/` at the root of your project and put all the files in there.
206206

samples/calculator/Adder/Adder.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<PropertyGroup>
77
<OutputType>Library</OutputType>
8-
<TargetFramework>net9.0</TargetFramework>
8+
<TargetFramework>net10.0</TargetFramework>
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<Nullable>enable</Nullable>
1111

samples/calculator/CalculatorComposed/CalculatorComposed.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- and express a dependency on the two implementation components. -->
88

99
<PropertyGroup>
10-
<TargetFramework>net9.0</TargetFramework>
10+
<TargetFramework>net10.0</TargetFramework>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

samples/calculator/CalculatorHost/CalculatorHost.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<PropertyGroup>
77
<OutputType>Exe</OutputType>
8-
<TargetFramework>net9.0</TargetFramework>
8+
<TargetFramework>net10.0</TargetFramework>
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<Nullable>enable</Nullable>
1111

src/WasmComponent.Sdk/WasmComponent.Sdk.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageTags>webassembly, .net, wasm</PackageTags>
1212
<PackageReleaseNotes>https://github.com/bytecodealliance/componentize-dotnet/releases/tag/$(PackageVersion)</PackageReleaseNotes>
1313

14-
<TargetFramework>net9.0</TargetFramework>
14+
<TargetFramework>net10.0</TargetFramework>
1515
<ImplicitUsings>enable</ImplicitUsings>
1616
<Nullable>enable</Nullable>
1717
<IsPackable>true</IsPackable>

src/WitBindgen/WitBindgen.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageTags>webassembly, .net, wasm</PackageTags>
1212
<PackageReleaseNotes>https://github.com/bytecodealliance/componentize-dotnet/releases/tag/$(PackageVersion)</PackageReleaseNotes>
1313

14-
<TargetFramework>net9.0</TargetFramework>
14+
<TargetFramework>net10.0</TargetFramework>
1515
<ImplicitUsings>enable</ImplicitUsings>
1616
<Nullable>enable</Nullable>
1717
<IsPackable>true</IsPackable>

templates/BytecodeAlliance.Componentize.DotNet.Templates.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<!-- Keep package type as 'Template' to show the package as a template package on nuget.org and make your template available in dotnet new search.-->
1818
<PackageType>Template</PackageType>
19-
<TargetFramework>net9.0</TargetFramework>
19+
<TargetFramework>net10.0</TargetFramework>
2020
<IncludeContentInPack>true</IncludeContentInPack>
2121
<IncludeBuildOutput>false</IncludeBuildOutput>
2222
<ContentTargetFolders>content</ContentTargetFolders>

templates/content/wasi-cli/wasi-cli.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<RootNamespace>wasi_cli</RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
@@ -15,7 +15,7 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="BytecodeAlliance.Componentize.DotNet.Wasm.SDK" Version="0.6.0-preview00009" />
18-
<PackageReference Condition="'$(platform)' == 'Windows_NT'" Include="runtime.win-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.25118.1" />
19-
<PackageReference Condition="'$(platform)' == 'linux'" Include="runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.25118.1" />
18+
<PackageReference Condition="'$(platform)' == 'Windows_NT'" Include="runtime.win-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.25162.1" />
19+
<PackageReference Condition="'$(platform)' == 'linux'" Include="runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.25162.1" />
2020
</ItemGroup>
2121
</Project>

test/E2ETest/PackageTest/PackageTest.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="..\..\WasmtimeCliFetcher\FetchWasmtime.targets" />
33

44
<PropertyGroup>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88

test/E2ETest/testapps/E2EConsumer/E2EConsumer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
7-
<TargetFramework>net9.0</TargetFramework>
7+
<TargetFramework>net10.0</TargetFramework>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
1010
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>

test/E2ETest/testapps/E2EProducer/E2EProducer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- This project can't be included in the solution because its package reference can't be satisfied except when running under test -->
44

55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>

test/WasmComponentSdkTest/WasmComponentSdkTest/WasmComponentSdkTest.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\..\src\WasmComponent.Sdk\ImportInDev.proj" />
44

55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
<!-- clear the defaulted values from sdk-->

test/WasmComponentSdkTest/testapps/AppWithWitFolder/AppWithWitFolder.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<PropertyGroup>
77
<OutputType>Exe</OutputType>
8-
<TargetFramework>net9.0</TargetFramework>
8+
<TargetFramework>net10.0</TargetFramework>
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<Nullable>enable</Nullable>
1111

test/WasmComponentSdkTest/testapps/OciWit/OciWit.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\..\..\src\WasmComponent.Sdk\ImportInDev.proj" />
44

55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99

test/WasmComponentSdkTest/testapps/SimpleConsumer/SimpleConsumer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<PropertyGroup>
77
<OutputType>Exe</OutputType>
8-
<TargetFramework>net9.0</TargetFramework>
8+
<TargetFramework>net10.0</TargetFramework>
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<Nullable>enable</Nullable>
1111

test/WasmComponentSdkTest/testapps/SimpleProducer/SimpleProducer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Import Project="..\..\..\..\src\WasmComponent.Sdk\ImportInDev.proj" />
55

66
<PropertyGroup>
7-
<TargetFramework>net9.0</TargetFramework>
7+
<TargetFramework>net10.0</TargetFramework>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
1010

test/WitBindgenTest/WitBindgenTest/WitBindgenTest.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

test/WitBindgenTest/testapps/LibraryUsingWit/LibraryUsingWit.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\..\..\src\WitBindgen\ImportInDev.proj" />
44

55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
</PropertyGroup>

test/WitBindgenTest/testapps/LibraryWithCustomGeneratedFilesLocation/LibraryWithCustomGeneratedFilesLocation.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\..\..\src\WitBindgen\ImportInDev.proj" />
44

55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
<WitGeneratedFilesRoot>generated/wit</WitGeneratedFilesRoot>

test/WitBindgenTest/testapps/LibraryWithExceptions/LibraryWitExceptions.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\..\..\src\WitBindgen\ImportInDev.proj" />
44

55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
</PropertyGroup>

test/WitBindgenTest/testapps/LibraryWithWitResultType/LibraryWithWitResultType.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\..\..\src\WitBindgen\ImportInDev.proj" />
44

55
<PropertyGroup>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
<WitBindgenAddtionalArgs>--with-wit-results</WitBindgenAddtionalArgs>

0 commit comments

Comments
 (0)