deanwiseman / DartSassBuilder

Sass builder (dart compiler) for .NET projects
MIT License
30 stars 10 forks source link

.net 6 x86/x64 issue #11

Open JelleHissink opened 2 years ago

JelleHissink commented 2 years ago

You might want to have a look at https://github.com/johan-v-r/LibSassBuilder/pull/41 as this also seems to apply to DartSassBuilder.

The issue: https://github.com/johan-v-r/LibSassBuilder/issues/39

deanwiseman commented 2 years ago

Hi Jelle - thank you - will take a look at this

JelleHissink commented 2 years ago

I tried 0.2.1-beta, however this still results in an issue on my machine:

1>During loading of Sass compiler an error occurred. See details:
1>
1>Message: During loading of Sass compiler error has occurred. Failed to create instance of the V8JsEngine. Most likely it happened, because the 'ClearScriptV8.win-x86.dll' assembly or one of its dependencies was not found. Try to install the Microsoft.ClearScript.V8.Native.win-x86 package via NuGet.

It seems by the .targets file when dotnet is invoked it calls the 32-bit version of dotnet.exe, I have both versions of the sdk on my machine, it however prefers the x86 version because of the order on the PATH. I think the tool should not depend on random things like this. Possible solutions could consist of calling the executable of the tool directly, without dotnet (at least on windows machines?) That would resolve all x86/x64 issues. Or include both x86 and x64 versions of the dependencies.