OutSystems / ReactView

ReactView is a framework for building react.js based UIs that can be hosted in Avalonia/WPF applications
Apache License 2.0
32 stars 7 forks source link

Problems with a WPF project #187

Open Green7 opened 5 months ago

Green7 commented 5 months ago

I tried using ReactView in a WPF project.

First, I tried to create a WPF project for Net Framework 4.72 Problem: the reactviewcontrol-wpf ver 2.91.1 package cannot be installed because it depends on WebViewControl-WPF 2.91.3 but WebViewControl-WPF 2.91.3 is not available on nuget. In this case, an attempt is made to use the WebViewControl-WPF ver. 3.120.2 package. However, this package does not support Net Framework (requires net8.0-windows7.0)

So I created a net8.0 project and :

I'm guessing that this is probably caused by an incompatible version of the CefGlue package because I see that the MaxNativeMethodsParallelCalls method has been removed in its newer versions.

So I stuck ..

joaompneves commented 5 months ago

Packages on nuget were not updated. They should be now.

Green7 commented 5 months ago

Now the situation is better, but when creating a component I get an exception:

System.IO.FileNotFoundException: Unable to find SubProcess. Probed locations: P:\Tmp_CSharp_\ReactView\Hello2\bin\Debug\net8.0-windows\CefGlueBrowserProcess\Xilium.CefGlue.BrowserProcess.exe

The CefGlueBrowserProcess directory is not created in the bin directory during compilation so I have to copy it manually.

joaompneves commented 2 months ago

Check the latest 3.120.4. It should fix that issue.