Git Product home page Git Product logo

Comments (4)

Xan-Kun avatar Xan-Kun commented on June 28, 2024

P.S.: I am aware there is another discussion on a similar topic, but it is about AnyCPU there and has nothing to do with publishing, as I understand it. Anyways, I tried everything here too and nothing solves it.

from cefsharp.

Xan-Kun avatar Xan-Kun commented on June 28, 2024

Just to be totally sure, I just tried again with the CefSharp.MinimalExample, the only change that was made was

<TargetFrameworks>net8.0-windows</TargetFrameworks>

And after publish as self-contained, the files are all in the root again.

from cefsharp.

amaitland avatar amaitland commented on June 28, 2024

Formerly we had CefSharpTargetDir, but that doesnt seem to do anything anymore. Having a functionality like that again would be ideal.

CefSharpTargetDir is not supported by the NETCore packages. The packages use Architecture-specific folders to comply with the nuspec standard.

For the assets to be correctly added to the .deps.json file we need to rely on the built in behaviour. Support for copying to a sub folder is not something we can add specifically to the packages, you'll need to rely on solutions provided by Microsoft (Or one of the third party hacks).

And after publish as self-contained, the files are all in the root again.

This is the expected behaviour.

NuGet/Home#5986 (comment) has some suggestions on workarounds. There's another issue also that discusses the options, I just don't remember the URL at the moment.

I think I tried all (reasonable) combination of these settings and the only thing that ever happens is the runtimes part during compilation.

Rather than guessing, I'd suggest reviewing the https://github.com/cefsharp/CefSharp/blob/master/NuGet/PackageReference/CefSharp.Common.NETCore.targets file to see what customisations are actually supported.

Closing as this is not something we can add direct support for.

from cefsharp.

Xan-Kun avatar Xan-Kun commented on June 28, 2024

I know the referenced Nuget issue, and already feared it would come down to this (managing every single file myself, which completely defeats the purpose of a "package manager" :-)
Atm I am having so many problems with CefSharp (esp the HW-acceleration part interferes massively with multiple other packages) that I am tyring to switch to WebView2, which I really dont like, but it seems CefSharp simply doesnt work anymore in this use case.
Another way would be to switch back to CefSharp.WinForms (without the netcore) since it worked perfectly back then.
Anyways, thanks again for the library 👍

from cefsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.