App.config and F# Interactive not working

前端 未结 6 1314
陌清茗
陌清茗 2020-12-17 10:53

As I\'m polishing my little pet project, I\'m trying to store all the constant strings in my app.config file (Keys, XpathExpressions etc). When I run the compiled exe this w

6条回答
  •  不思量自难忘°
    2020-12-17 11:37

    Maybe you could point FSI to the app.config file manually by using the OpenMappedExeConfiguration method on ConfigurationManager.

    Also you could try loading your assembly in a separate AppDomain - you can give any file as config file to an AppDomain you create yourself using the AppDomainSetup class.

    Th fact remains that FSI isn't well suited to this kind of scenario...

提交回复
热议问题