【问题标题】:Visual Studio 2015 Installer extention cannot get dependencies of a DLLVisual Studio 2015 安装程序扩展无法获取 DLL 的依赖项
【发布时间】:2016-11-23 08:02:07
【问题描述】:

我有一个 Visual Studio 2015 项目,我想将它打包到安装程序中。我搜索了一些选项,最简单的应该是使用 Visual Studio Installer 插件。我看过几个教程(虽然这个过程非常简单),但我每次都卡在同一个部分。

我在这个项目中使用的一个DLL是破坏Installer的构建过程(正常项目的构建过程很好)。我收到以下消息:

3>------ Rebuild All started: Project: MountainTop, Configuration: Debug ------
ERROR: Unable to update the dependencies of the project.  The dependencies for the object 'FestaJsonConnectorSupportDotNet.dll' cannot be determined.

不知道为什么Visual Studio 找不到这个依赖,但仍然可以编译正常的项目。另外,我试图从安装程序项目的检测到的依赖项中排除这个特定的 DLL,但是在构建它时仍然试图获取这个特定的库依赖项。

知道为什么我在使用这个特定的库时遇到问题以及如何绕过它(也许创建一个没有它的安装程序并在安装后手动将其粘贴到程序文件夹中)?

【问题讨论】:

    标签: c# visual-studio dll dependencies installation


    【解决方案1】:

    我们在 VS2017 中遇到了这个问题。我们的解决方案是打开 .vdproj 文件并手动删除包含错误中文件名的所有 FILE 部分。例如,如果错误中的对象名称是 FILENAME,则删除此部分:

        "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_DA245F337D3A391A509F6F85ABC85543"
        {
        "AssemblyRegister" = "3:1"
        "AssemblyIsInGAC" = "11:FALSE"
        "AssemblyAsmDisplayName" = "8:EntityFramework.FILENAME, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
            "ScatterAssemblies"
            {
                "_DA245F337D3A391A509F6F85ABC85543"
                {
                "Name" = "8:EntityFramework.FILENAME.dll"
                "Attributes" = "3:512"
                }
            }
        "SourcePath" = "8:EntityFramework.FILENAME.dll"
        "TargetName" = "8:"
        "Tag" = "8:"
        "Folder" = "8:_4ECC3E8786B14EE68F744E24DD8EEFB9"
        "Condition" = "8:"
        "Transitive" = "11:FALSE"
        "Vital" = "11:TRUE"
        "ReadOnly" = "11:FALSE"
        "Hidden" = "11:FALSE"
        "System" = "11:FALSE"
        "Permanent" = "11:FALSE"
        "SharedLegacy" = "11:FALSE"
        "PackageAs" = "3:1"
        "Register" = "3:1"
        "Exclude" = "11:FALSE"
        "IsDependency" = "11:TRUE"
        "IsolateTo" = "8:"
        }
    

    【讨论】:

    • 为我工作了 Visual Studio 2017 安装程序项目!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-25
    • 1970-01-01
    相关资源
    最近更新 更多