mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Version 4.16.0. MapControl.WPF.csproj targets multiple frameworks.
This commit is contained in:
parent
f9d915ae70
commit
bee675e9f1
|
|
@ -185,11 +185,11 @@ namespace MapControl.Caching
|
|||
stream.Write(Encoding.ASCII.GetBytes("EXPIRES:"), 0, 8);
|
||||
stream.Write(BitConverter.GetBytes(imageCacheItem.Expiration.Ticks), 0, 8);
|
||||
}
|
||||
#if !NETCOREAPP3_0
|
||||
var fileSecurity = File.GetAccessControl(path);
|
||||
|
||||
var fileInfo = new FileInfo(path);
|
||||
var fileSecurity = fileInfo.GetAccessControl();
|
||||
fileSecurity.AddAccessRule(fullControlRule);
|
||||
File.SetAccessControl(path, fileSecurity);
|
||||
#endif
|
||||
fileInfo.SetAccessControl(fileSecurity);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue