-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NETCore - Move Runtime Files to custom Subfolder doesn't work #4813
Comments
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. |
Just to be totally sure, I just tried again with the CefSharp.MinimalExample, the only change that was made was
And after publish as self-contained, the files are all in the root again. |
For the assets to be correctly added to the
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.
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. |
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" :-) |
Is there an existing issue for this?
CefSharp Version
124.3.80
Operating System
Windows 10
Architecture
x64
.Net Version
.NET 8
Implementation
WinForms
Reproduction Steps
Create a brand new minimal
x64
WinForms
project.Include
CefSharp.WinForms.NETCore
.Try any approach from the docs or SO and the the cefsharp files will not be put into a subdirectoy.
Just to be clear: I am not talking about
AnyCPU
support, since this is another can of worms :-)Even with AynCPU it doesnt really work: the files are initally created in the
runtimes
subfolder, but after publis as self-contained, the files are back in the root of the application.I think I tried all (reasonable) combination of these settings and the only thing that ever happens is the
runtimes
part during compilation.The goal is to have just the
win-x64
lib
&native
files in a dedicated sub-directory likecef_sharp_files
.Even after publish to folder.
The loading is not a problem, btw.
Ideally, we would have a MinimalExample for this case
Expected behavior
Formerly we had
CefSharpTargetDir
, but that doesnt seem to do anything anymore. Having a functionality like that again would be ideal.Actual behavior
None of the tried ways put the lib & native files in a dedicated directory after publish.
Regression?
See
CefSharpTargetDir
in previous versions.Known Workarounds
none
Does this problem also occur in the CEF Sample Application
No
Other information
No response
The text was updated successfully, but these errors were encountered: