Problems with a WPF project
Opened this issue · 3 comments
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 installed ReactViewControl-WPF 2.91.1 and ViewGenerator 1.2.1
- I added the files ts2lang.json, tsconfig.json, tsx
- I have several warnings regarding the versions of the ViewGenerator, ReactViewControl-WPF packages
(e.g. ViewGenerator 1.2.1 depends on ViewGeneratorCore (>= 1.0.226) but ViewGeneratorCore 1.0.226 was not found. An approximate best match of ViewGeneratorCore 1.0.228 was resolved)
but the code is generated - however, it is impossible to create an object derived from BaseComponent. An exception appears:
"System.MissingMethodException: Method not found: 'Void WebViewControl.WebView.set_MaxNativeMethodsParallelCalls(Int32)'.
at ReactViewControl.ReactViewRender..ctor"
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 ..
Packages on nuget were not updated. They should be now.
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.
Check the latest 3.120.4. It should fix that issue.