Closed Thorium closed 8 years ago
So I wish that instead of ConfigurationManager.OpenExeConfiguration
there would be a way to use either the initial configuration file or runtime defined file. I was thinking that this could be easy way to create scripts to manipulate *.config files.
This is actually duplicate for #16
I'm trying to run AppSetting provider (the NuGet package version) from FShap Interactive (version 14.0.23020.0).
I try to give the path in any format:
(I was hoping to use the first one to work on both .NET and Mono...) Visual Studio Intellisense works fine. Settings.ConfigFileName gives the right file name. But trying to get or set the actual values (Settings.MyThingHere) from F# Interactive will raise an exception. So none of these works. they raise:
I'm trying to debug what happens here, and I think it is trying in runtime use Fsi.exe.config instead of the file I have given.
getConfig().AppSettings.Settings.[key]
fails as AppSettings Count is zero.