“Unable to update dependencies of the project” after committing to Subversion

前端 未结 13 1097
野性不改
野性不改 2021-01-31 06:50

I have a setup project in .NET. When I save the project and the other projects to subversion, the setup project no longer compiles. I get the error \"Unable to update dependenci

13条回答
  •  春和景丽
    2021-01-31 07:20

    I had the similar problem and found a fix in this very long and old discussion on MSDN.
    As the user 'Jeff Hunsaker' on Thursday, August 26, 2010 5:51 PM answered (direct link not possible):

    I just encountered this when upgrading Visual Studio 2008 Deployment Projects to VS 2010. Hans' (above) solution worked for me.

    1. Edit the .vdproj file in Notepad.
    2. Search for "SourcePath" = "8:
    3. For each assembly/dll, provide the full path
    4. Save file

    Within my .vdproj file, I had several entries simply referencing the assembly:
    "SourcePath" = "8:MyAssembly.DLL"

    Even though Visual Studio [somehow] knew the file location, I received the "Unable to update the dependencies of the project" error until I provided the full path:

    "SourcePath" = "8:..\..\..\build\bin\MyCompany.MyAssembly.DLL"

    Regards,

    Jeff...

    I noted which dependencies were reported by Visual Studio and wrote a script to fix them in case this is required.

    Note that this now gives me a warning "Two or more objects have the same target location ('[targetdir]\MyAssembly.dll'). But I can live with that.

提交回复
热议问题