简体   繁体   中英

Resharper - Debug static method

I have one project in a solution. Running that project is without any problem. I added a static method to test a database connection via Entity Framework. If i debug this static method with Resharper's debug, it crashes it cannot find a section with connection string in app.config. ( Other projects accessing app.config also fails )

I tried to copy app.config to output. I tried to set "Use separate AppDomain".

What should i do ? Thanks !

Is this using ReSharper's Run Configurations ? If so, I'd say it sounds like a bug, where the host for running the static method doesn't set up the app.config correctly. I'd suggest raising an issue .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM