Skip to content

Conversation

@kpreisser
Copy link
Contributor

@kpreisser kpreisser commented Oct 10, 2022

Hi!

As noted by @martindevans in #160 (comment), Unity up to version 2022.2 currently supports .NET Standard 2.1 (netstandard2.1, released with .NET Core 3.1) as highest .NET target framework. See .NET profile support in the Unity documentation.

While the net6.0 library apparently could also be used in Unity, it would break as soon as any feature/type introduced in a newer .NET version was used. Therefore, I think it would be a good idea to also build for .NET Standard 2.1 for the time being in order to support Unity users. Note that Wasmtime already builds successfully for netstandard2.1 without any code change (at least when using C# 10).

(The net6.0 target can be kept to benefit from the newest analyzers and NRT annotations.)

What do you think?

Thanks!

This is the highest target fromwork supported by the current Unity version (2021.3), and the project builds fine using that version, so there would actually be no need to target .NET 6.0.
@peterhuene
Copy link
Member

@kpreisser thanks for this. Sorry I've been on vacation the last two weeks, so I'll get to your other PRs soon (trying to play the "just back from vacation" catch-up game).

@peterhuene peterhuene merged commit 40ea95b into bytecodealliance:main Oct 17, 2022
@kpreisser kpreisser deleted the add-netstandard-21 branch October 17, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants