Skip to content

Problems with a WPF project #187

@Green7

Description

@Green7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions