randomPoison / cs-bindgen

Experiment in using Rust to build a library that can be loaded by Unity across multiple platforms
4 stars 0 forks source link

Compile integration test against .NET Standard 2.0 #62

Closed randomPoison closed 4 years ago

randomPoison commented 4 years ago

Currently Unity supports (most of) .NET Standard 2.0, but doesn't have support for 2.1. In order to make sure that we properly support Unity we'll want to make sure that the generated code compiles against the netstandard2.0 target framework. However, with the way the integration test project is setup, we can't directly target netstandard2.0 because xUnit.net doesn't support netstandard targets. It should be possible to work around this by splitting the tests into a separate csproj from the generated code. This would allow us to compile the code itself against a number of different target frameworks and language versions for the purpose of verifying compatibility, while only running the xUnit test suite against the frameworks that xUnit supports.

randomPoison commented 4 years ago

This was addressed in b90dba1 (and then fixed in #64), so we now are running the integration tests against .NET Core 2.0 which conforms to .NET Standard 2.0 while still supporting C# 7.3 (which is the weird combination that Unity currently supports).