Why do I get “An error occurred while validating. HRESULT = '80004005'” when building a setup project?

前端 未结 11 662
北荒
北荒 2020-12-09 09:10

Why do I get the following error when building a setup project?

An error occurred while validating. HRESULT = \'80004005\'

11条回答
  •  忘掉有多难
    2020-12-09 09:31

    I read this answer from another post on Stack Overflow, and it has worked for me.

    Open your setup project file (.vdproj) in Notepad (or any other text editor). Delete these lines at a beginning of the .vdproj file:

    "SccProjectName" = "8:"
    "SccLocalPath" = "8:"
    "SccAuxPath" = "8:"
    "SccProvider" = "8:"
    

    Build again - the error is gone. That error didn't stop me from deploying, building, debugging (or anyting) my project; it just annoyed me. And it came on even if I set all projects to be build in a current configuration and the setup project not to.

提交回复
热议问题