Question

Title says most of it. I want the ScriptCs to read my app.config file in my current directory as it would as if this were an exe. I'm not sure it's possible, but if it is, 'how'?

In particular, I would like my connection strings picked up when I 'new up' an instance of a dbContext.

Thanks, Jason

Was it helpful?

Solution

You can potentially use ExeConfigurationFileMap to defined the app.config you want to use.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top