You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the engine requires additional symbols to load, server
// should find a way to safely cache it.
varengine=new RecalcEngine();
to read:
public RecalcEngine GetEngine(){// If the engine requires additional symbols to load, server// should find a way to safely cache it.
CultureInfo.CurrentCulture =new CultureInfo("en-US");varengine=new RecalcEngine();
instead.
Please notice I've tried to just pass new CultureInfo("en-US") as an argument to the RecalcEngine constructor, but that didn't solve 🤷
Pardon me if there is a simpler solution but I'm very new to .Net! 😆
The above solves for me on Mac OS.
Before:
After:
The text was updated successfully, but these errors were encountered:
I've been trying these samples on macOS 11.6.1
I am using .Net: 6.0.101
but I get the following error trying the
WebDemo
andConsoleREPL
:To fix the issue, I've locally modified the samples taking inspiration from microsoft/Power-Fx#71 (comment)
ConsoleREPL
To fix the issue I've added:
before this
ResetEngine();
line:power-fx-host-samples/Samples/ConsoleREPL/ConsoleREPL.cs
Lines 27 to 29 in 63ae373
Before:
After:
Web
Since I could not find ASP.Net redistributable for .Net Core 3.1 for Mac OS X,
I've replaced this line:
power-fx-host-samples/Samples/WebDemo/service/PowerFxService.csproj
Lines 1 to 4 in 63ae373
to read
instead.
Then, I've changed this line:
power-fx-host-samples/Samples/WebDemo/service/Model/PowerFxScopeFactory.cs
Lines 16 to 20 in 63ae373
to read:
instead.
Please notice I've tried to just pass
new CultureInfo("en-US")
as an argument to theRecalcEngine
constructor, but that didn't solve 🤷Pardon me if there is a simpler solution but I'm very new to .Net! 😆
The above solves for me on Mac OS.
Before:
After:
The text was updated successfully, but these errors were encountered: