The Following Module was built either with optimizations enabled or without debug information

后端 未结 30 2071
离开以前
离开以前 2020-12-04 07:30

I cannot get rid of this in my VS 2008 web project when debugging. I\'ve checked that it\'s in debug mode on the non-web project in question and it\'s in Active(Debug). De

30条回答
  •  情深已故
    2020-12-04 08:08

    Had this happen to me on a VS 2010 winForms project. Seeing that the majority of people here have web projects, i think that it has to do with access to the folder in which the project is stored. I say this because when this problem occurred to me Google Drive was synchronizing the folder in which i keep my projects. It seems that just disabling the synchronization does not fix the problem.

    My solution is similar to one of the answers above:

    • Went to "Project Properties > Compile > Advanced Compile Options"
    • Checked "Enable optimization"
    • Set "General debug info:" to "None"
    • Unchecked "Define DEBUG constant"
    • And pressed OK
    • Then went back and returned the options to their initial state.

    Hope this helps someone as it seems this still happens.

提交回复
热议问题