the source file is different from when the module was built

后端 未结 27 2185
無奈伤痛
無奈伤痛 2020-11-29 20:53

This is driving me crazy.

I have a rather large project that I am trying to modify. I noticed earlier that when I typed DbCommand, visual studio did

27条回答
  •  再見小時候
    2020-11-29 21:36

    My problem was that I had two projects in my solution. The second one was a test project used to call the first one. I had picked the path to the references from the bin folder's release folder.

    So whenever I made a change to the first project's code and rebuilt it, it would update the dlls in the debug folder but the calling project was pointing to the release folder, giving me the error, "the source file is different from when the module was built."

    Once I deleted the reference to the main project's dll in the release folder and set it to the dll in the debug folder, the issue went away.

提交回复
热议问题