cefsharp / Questions-and-Support

Use this repository to ask CefSharp specific questions
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Program is initializing Prompt error 84.4.10 in WPF Coer 3.1 | 使用版本84.4.10程序在初始化的时候提示找不到系统找不到文件 #58

Closed ssuui closed 3 years ago

ssuui commented 3 years ago

85.3.130

X86

Win 10

WPF

Program is initializing

Error Message

eg : Could not load file or assembly 'CefSharp.Wpf, Version=85.3.130, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. 系统找不到指定的文件。

English

I'm not doing anything.Only the component was introduced, and an exception occurred while the program was being initialized .Before my computer updated this version. It works in another project. The version used is 84.4.10 and he has no exceptions.Can make sure that my computer environment is no problem.The same thing happens when I go back to the old version84.4.10

Chinese

我什么都没做。在引入组件的时候。程序初始化就出现了异常。电脑在更新这个版本之前。在另外一个项目中是可以正常运行的。使用的版本为84.4.10 他没有异常。可以确保我电脑的环境是没有问题的。我回退旧版本84.4.10 也是如此情况

img

img

img

amaitland commented 3 years ago

Issue transferred as it's unlikely there's a bug.

Have you followed the instructions outlined in? There is a working example at https://github.com/cefsharp/CefSharp.MinimalExample please download and test. The MinimalExample is working as expected.

I'm not doing anything.Only the component was introduced, and an exception occurred while the program was being initialized .Before my computer updated this version. It works in another project. The version used is 84.4.10 and he has no exceptions.Can make sure that my computer environment is no problem.The same thing happens when I go back to the old version84.4.10

It's not clear what you mean by this. Please provide clearer details.

If you have updated an already working .Net Core project then please perform a clean build (clean your project if it's using git or manually delete the bin/obj` folder).

ssuui commented 3 years ago

I've tried all of the above. I also tried to return a device to operate. This is the problem that occurs when you run Debug X86 after a component reference. FileNotFoundException: Could not load File or Assembly 'CefSharp.Wpf, Version=85.3.130.0, Culture=neutral, PublicKeyToken= 40C4B6FC221f4138 '. The system could not find the specified file.

GoogleImage

GoogleImage

GoogleImage

Demo The example above that I'm working perfectly here shows that my environment is fine. Instead of creating a new project on native, I've shown my code in the Google gallery. It's just a simple reference and run Debug x86

Thank you for your reply and help. Wish you a happy life

ssuui commented 3 years ago

@amaitland

ssuui commented 3 years ago

The problem has been solved. Thank you very much. I need to write something in the project。

<ItemGroup>
        <!-- TODO: These updates are currently required because CefSharp.Wpf specifies
         <Private>false</Private>, which means these libraries will not be specified in
         the .deps.json file, and so the CoreCLR wouldn't load these. -->
        <Reference Update="CefSharp">
            <Private>true</Private>
        </Reference>
        <Reference Update="CefSharp.Core">
            <Private>true</Private>
        </Reference>
        <Reference Update="CefSharp.Wpf">
            <Private>true</Private>
        </Reference>
    </ItemGroup>

、 Thank you very much