1

In my dotnetcore winforms application I am able to get the connection string correctly from app.config when running in the IDE

  var connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;

For run time, I thought I would just replace the connection string in the MyApp.Win.config file. However the connection string is being pulled from MyApp.Win.dll.config

The docs are here.

Kirsten
  • 15,730
  • 41
  • 179
  • 318
  • This may be related https://stackoverflow.com/questions/61786767/no-connection-string-named-connectionstring-could-be-found-in-the-application – Kirsten May 17 '20 at 00:33

0 Answers0