FSharp.Management
FSharp.Management copied to clipboard
Iconsistent reach of file `C:/Windows/System32/drivers/etc/hosts`
Compiles:
type Windows = FileSystem<"C:/Windows/System32/drivers/etc">
let updateHosts name (ip:IPAddress) =
Windows.hosts
Not compiles (where is etc
?):
type Windows = FileSystem<"C:/Windows/System32/drivers">
let updateHosts name (ip:IPAddress) =
Windows.etc
I want to reach C:/Windows/System32/drivers/etc/hosts
which is like local DNS table, sometimes used to to ensure .NET IO classes map to right network storage by name. Hence change of hosts
during deployment.
I think it's something with access rights.
Not sure how type providers work, but can FileSystem<"C:/Windows/System32/drivers/"> run in one rights, but when I type Windows.etc
in VS 2015 editor to be under other rights?
Ensured hidden and read only are not applied to etc and its content.