ReactView
ReactView copied to clipboard
Problems with a WPF project
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 ..