the source file is different from when the module was built

后端 未结 27 2001
無奈伤痛
無奈伤痛 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:30

    At Visual Studio 2015, using C++, what fixed for me the the source file is different from when the module was built problem was

    • restart Visual Studio.
    0 讨论(0)
  • 2020-11-29 21:33

    My problem was that I had a webservice in the project and I changed the build path.

    Restoring the default build path solved my issue.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题