chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.98k stars 279 forks source link

Cef binaries copied How disable ? #335

Closed nurbat closed 3 years ago

nurbat commented 3 years ago

изображение How do I disable copying ?

mattkol commented 3 years ago

@nurbat

It is part of the nuget restore/build process on Windows. This is not going to happen at runtime. To really stop that maybe you could delete the entire "build" folder in the nuget package.

image

Alternatively you can use just the dll instead of the nuget package.

If you want to disable CEF binaries download at runtime, please look into:

   var config = DefaultConfiguration.CreateForRuntimePlatform();
   config.CefDownloadOptions.AutoDownloadWhenMissing = false;

More info - https://github.com/chromelyapps/Chromely/blob/master/Documents/cef_binaries_download.md

nurbat commented 3 years ago

It is part of the nuget restore/build process on Windows. This is not going to happen at runtime. To really stop that maybe you could delete the entire "build" folder in the nuget package.

I will try to delete the build folder.

Maybe it is possible to disable it by specifying for example <CefBuild>false</CefBuild> in the solution file, think about such a solution if possible

mattkol commented 3 years ago

Maybe it is possible to disable it by specifying for example false in the solution file, think about such a solution if possible

Isn't it just easier to create a post build event to override the CEF binaries downloaded? This is will be a very rare requirement, in my opinion, but if you think it is useful, a PR will be appreciated.