Comments (4)
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.
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.
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.
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)
- After upgrading cefsharp, the program cannot run two instances at the same time. HOT 1
- No longer works on 7.0 or above - Giving up
- Browser shows gray screen although PDF file exists HOT 1
- > CefSharp ver 65 support drag and drop with out having to write any separate function for it. But it is not supporting Google Map API anymore for which I have to migrate to ver 98 or above. But with ver 98 drag and drop does not work.
- Random crash while using a Clickonce application with CefSharp 124.3.80
- Release Notification - 125.0.x
- Compile error HOT 2
- Cross-site XHR with headers set fails to authenticate with proxy HOT 1
- Chrome Runtime proxies don't work unless flag is set. HOT 2
- No way to put cefsharp files in subdirectory anymore HOT 2
- OffScreen - ChromeRuntime doesn't work with LoadURL HOT 5
- Alloy bootstrap error shown even if debug logs are disabled HOT 2
- Change to using Chrome bootstrap by default HOT 6
- IDialogHandler.OnFileDialog add new extensions and descriptions arguments
- Enable browser After RequestContext, open the developer tool and the application will crash HOT 2
- Release Notification - 126.2.x HOT 4
- WinForms Example - File > Close Tab does not allow a fetch to clear cookies on page termination but CTRL + W hotkey does HOT 2
- v126.x (Chrome bootstrap) unable to load cookies from prior version (Alloy bootstrap) HOT 8
- SetUserAgentOverrideAsync Iframe not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cefsharp.