Copy Cef/CefSharp into sub folder, does not work #3532
Replies: 4 comments 25 replies
-
Issue #3319 has details on the nuget package restructure. In particular #3319 (comment)
I'm not familiar with that particular option, please provide a reference link.
The preferred option in my opinion is to use a Directory.Build.props file as I've described in #3319 (comment) You can set You can also set <CefSharpBuildAction Condition="'$(OutputType)' == 'Library'">NoAction</CefSharpBuildAction>
That is the expected default when using a You can set |
Beta Was this translation helpful? Give feedback.
-
I tried it but without |
Beta Was this translation helpful? Give feedback.
-
I have a I can't get it to copy to a subfolder. And I am a little confused about what the correct way in this case would be. Any help/hint much appreciated. |
Beta Was this translation helpful? Give feedback.
-
I think it would be fair to answer at least one of the many questions on the web concerning this with a truthful: NO. |
Beta Was this translation helpful? Give feedback.
-
I converted my project to new .NET Core SDK style projects (still compiling agains .NET Framework 4.8), with use of CefSharp 86, all is fine. CefSharp is in sub folder copied. Also if I build a project without Cefsharp in it but a dependency is using it.
Now I want to update to CefSharp 89, found that building projects which depends on this CefSharp works fine, but projects without direct CefSharp reference (nuget package) which rely on these projects with CefSharp dependency do now copy the cef binaries direct into OutputDir. This is because of the _TransitiveItemsToCopyToOutputDirectoryPreserveNewest --> PreserveNewest lead to copy it to output directory.
I guess it started since CefSharp 87. CefSharp 90.5.70-pre has no real change here, so it should have same issue.
I read about
DisableTransitiveProjectReferences
, but this is not working somehow.Edit:
One workaround would to define
CefSharpTargetDir
this these projects too, but this will be getting dependency hell.Beta Was this translation helpful? Give feedback.
All reactions