OK, found out I need to create Linqpad.config in the exe dir. Did that and added the connections string and a, appSetting, but can't return them to LP.
Here is my config file:
and here is my code. Both statements return null: var setting = ConfigurationManager.AppSettings["MySetting"]; Console.WriteLine(setting);
var con = ConfigurationManager.ConnectionStrings["MyConnectionString"]; Console.WriteLine(con);
Comments
Here is my config file:
and here is my code. Both statements return null:
var setting = ConfigurationManager.AppSettings["MySetting"];
Console.WriteLine(setting);
var con = ConfigurationManager.ConnectionStrings["MyConnectionString"];
Console.WriteLine(con);
OK, I can't paste my config or an imag