curiosity-ai / h5

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

h5.Target tries to install latest version instead specified #64

Closed ghost closed 2 years ago

ghost commented 2 years ago

I get the following when use <Project Sdk="h5.Target/0.0.21664">:

Package h5-compiler 0.0.34002 is not compatible with net6.0 (.NETCoreApp,Version=v6.0) / any. Package h5-compiler 0.0.34002 supports: net7.0 (.NETCoreApp,Version=v7.0) / any

It is latest version compatible with .NET 6, but it still tries to install "0.0.34002" which requires .NET 7.

ghost commented 2 years ago

Manual installing helps to workaround:

dotnet tool install --global h5-compiler --version 0.0.25007
theolivenbaum commented 2 years ago

You can also download the latest SDK, as I mentioned in #70

ghost commented 2 years ago

The original idea was to avoid downloading NET 7 based SDK.
Version which is compatible with .NET 6, should not try to download NET 7 based if NET 7 is not installed.
It is just creates warning garbage in logs during compilation.