Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with a WPF project #187

Open
Green7 opened this issue Jun 25, 2024 · 3 comments
Open

Problems with a WPF project #187

Green7 opened this issue Jun 25, 2024 · 3 comments

Comments

@Green7
Copy link

Green7 commented Jun 25, 2024

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 ..

@joaompneves
Copy link
Collaborator

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

@Green7
Copy link
Author

Green7 commented Jun 26, 2024

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
Copy link
Collaborator

Check the latest 3.120.4. It should fix that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants