curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler
https://github.com/curiosity-ai/h5
Apache License 2.0
211 stars 30 forks source link

Compilation broken when .net 6 is installed. #38

Closed IceReaper closed 2 years ago

IceReaper commented 3 years ago

Even when not using any .net6 in the project, the compilation fails as soon as .net6 preview2 is installed.

theolivenbaum commented 3 years ago

I'll try over the long weekend to see what could be the issue... We had something similar with one of the net5.0 previews, but it was solved by the time they released it

IceReaper commented 3 years ago

Workaround for this is to create a global.json in the project dir with the following contents:

{
  "sdk": {
    "version": "5.0.202"
  }
}

Problem with this workaround is as far as i can tell, that you need to change the version number after every update of your local sdk.

theolivenbaum commented 2 years ago

@IceReaper can you test again on the latest version? I've updated the compiler to net6.0 (see #52) and it works for me now