Files
cefsharp/CefSharp.Core
Alex Maitland 82daa955a2 Net Core - ModuleInitializer add null check for Assembly.Location
In .NET 5.0 and later versions, for bundled assemblies, Assembly.Location is an empty string.
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.location?view=net-5.0
Which results in Path.GetDirectoryName returning null, in that case use use AppContext.BaseDirectory
otherwise Path.Combine will throw an exception.
In .NET 5.0 and later versions, for bundled assemblies, AppContext.BaseDirectory returns the containing directory of the host executable.
https://docs.microsoft.com/en-us/dotnet/api/system.appcontext.basedirectory?view=net-5.0

Related discussion https://github.com/cefsharp/CefSharp/discussions/3533
2021-05-01 16:59:41 +10:00
..
2021-01-27 13:40:37 +10:00