Error Creating Debug Information - Code Won't Compile

前端 未结 19 1977
深忆病人
深忆病人 2021-02-18 15:04

I\'m using VS 2008. When ever I make a change in my code and try to compile I get the following error:

Error 7 Unexpected error creating debug informa

19条回答
  •  广开言路
    2021-02-18 15:40

    I have solved a similar problem by adding these lines as a pre-build event:

    if exist "$(TargetPath).locked" del "$(TargetPath).locked"
    if exist "$(TargetPath)" move "$(TargetPath)" "$(TargetPath).locked"
    

    With proper modifications, it might help your problem.

提交回复
热议问题