Compile Setup project with devenv.com - “ERROR: Unable to update the dependencies of the project”

后端 未结 6 1122
别那么骄傲
别那么骄傲 2021-02-05 03:33

I have a Setup deployment project in VS 2010. The project compiles perfectly with the GUI interface of VS 2010, but any time I trying to compile it via vs cmd (devenv.com) it co

6条回答
  •  轮回少年
    2021-02-05 04:16

    The hotfix didn't fix the issue on my computer (tried on two computers, rebooted all that jazz)

    Instead I used source control to figure out what happened to my .vdproj.

    It appears extra corrupt entries are added to the "File" section of the .vdproj.

    Suppose you are getting an error such as

    ERROR: Unable to update the dependencies of the project. The dependencies for the object 'AutoMapper.DLL' cannot be determined.

    In your .vdproj search for AutoMapper and you should come across several { } where it is used.

    A normal one looks like this:

            "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_263299FB43D185D41A44FBEE0253D3ED"
            {
            "AssemblyRegister" = "3:1"
            "AssemblyIsInGAC" = "11:FALSE"
            "AssemblyAsmDisplayName" = "8:AutoMapper, Version=1.1.0.188, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL"
                "ScatterAssemblies"
                {
                    "_263299FB43D185D41A44FBEE0253D3ED"
                    {
                    "Name" = "8:AutoMapper.DLL"
                    "Attributes" = "3:512"
                    }
                }
            "SourcePath" = "8:AutoMapper.DLL"
    

    whereas a corrupt chunk is missing the name of the dll (AutoMapper.DLL in this case) in the ScatterAssemblies section.

    Remove this corrupt entry, that is the entire section starting from "{9F6F8455-.. down to the next chunk.

提交回复
热议问题