How can I debug a VB6 project that has a .net interop project which uses an app.config file?

点点圈 提交于 2019-12-18 05:46:12

问题


I have a .net interop project that uses an app.config file. When I am running the VB6 project that is using the interop control in Debug mode, the ConfigurationManager cannot find the app.config file. When I make the VB6 project into an exe and rename the app.config file to (VB6 binary name).exe.config, the ConfigurationManager can find the file.

Is there a way to rename the app.config file or change a setting so ConfigurationManager can find the app.config file while VB6 is running in debug mode?


回答1:


A dirty hack is to place the app.config file into the VB6 folder and rename it to vb6.exe.config



来源:https://stackoverflow.com/questions/180828/how-can-i-debug-a-vb6-project-that-has-a-net-interop-project-which-uses-an-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!