Forum Discussion

Abishek_Kumar_Jain's avatar
Abishek_Kumar_Jain
Copper Contributor
Nov 23, 2023

Compile From Azure Pipeline ignores certain files related to CefSharp nuget package

Good day to all,

 

We are developing a WPF Desktop project that uses the nuget package "CefSharp.Wpf.NETCore". When we build this project from Visual studio manually (in both debug and release mode), some files are generated in a folder that is a subfolder of the bin folder. Attached is the screenshot below:

 

 

 

 

So far so good. But we have automated the build and release of our WPF software using Azure pipelines. When we run the build pipeline, it runs without any error. But certain files are missing in the folder shown above in the screenshot. Since certain files are missing, when we run the WPF.exe, it gives us exceptions when we run the program. Attached below is a screnshot that shows the files generated from build pipeline.

 

 

 

 

Comparing both the screenshots reveals that when the WPF project is built in azure pipeline, certain files are ignored. These files are related to the nuget package "CefSharp.Wpf.NETCore". Any idea as to how to solve this would be appreciated. Attached is the screenshot below that shows the azure build pipeline.

 

 

 

 

 

2 Replies

  • muhammadmaaz's avatar
    muhammadmaaz
    Copper Contributor
    Hi Abishek,

    I know this is almost a year old, but I'm facing the exact same issue. Debugging our project works fine but trying to run the release build that's compiled from Azure Pipelines is throwing exception that CefSharp could not be initialized.

    Were you able to resolve your issue? And if so, please share your findings.

    Thanks,
    Maaz
    • balasubramanim's avatar
      balasubramanim
      Iron Contributor
      To fix the issue with CefSharp not being initialized in your release build, try the following:
      • Make sure the build pipeline includes all necessary files and dependencies for CefSharp.
      • Explicitly include CefSharp files in your build pipeline configuration.
      • Check that the CefSharp version in your project matches the version installed by the build pipeline.
      • Ensure the build pipeline has the necessary permissions to access and copy files.

      If you're still having trouble, try enabling detailed logging in your build pipeline to get more insight into what's going wrong.

Resources