gpt4 book ai didi

.net - Installshield 限量版要求 .Net 框架文件和程序在没有 Visual Studio 的情况下无法运行

转载 作者:行者123 更新时间:2023-12-02 06:15:41 25 4
gpt4 key购买 nike

我在 VS 2013 社区版中有一个解决方案,我最近添加了一个带有 Installshield 限量版的安装项目。

当我重新构建解决方案(在发布 x64 模式下)时,installshield 项目会警告我有关以下文件的信息:

Warning -6245: One or more of the project's components contain .NET properties that require the .NET Framework.  It is recommended that the release include the .NET Framework. 16  ISEXP : warning : -6245: One or more of the project's components contain .NET properties that require the .NET Framework.  It is recommended that the release include the .NET Framework.

Warning -6248: Could not find dependent file Microsoft.ServiceBus, or one of its dependencies of component PLATOS.Primary_output 18 ISEXP : warning : -6248: Could not find dependent file Microsoft.ServiceBus, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file Microsoft.VisualStudio.CodeMarkers.dll, or one of its dependencies of component PLATOS.Primary_output 19 ISEXP : warning : -6248: Could not find dependent file Microsoft.VisualStudio.CodeMarkers.dll, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file Newtonsoft.Json, or one of its dependencies of component PLATOS.Primary_output 20 ISEXP : warning : -6248: Could not find dependent file Newtonsoft.Json, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file System.Data.SQLite, or one of its dependencies of component PLATOS.Primary_output 21 ISEXP : warning : -6248: Could not find dependent file System.Data.SQLite, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file System.Net.Http.Formatting, or one of its dependencies of component PLATOS.Primary_output 22 ISEXP : warning : -6248: Could not find dependent file System.Net.Http.Formatting, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file System.Web.Http, or one of its dependencies of component PLATOS.Primary_output 23 ISEXP : warning : -6248: Could not find dependent file System.Web.Http, or one of its dependencies of component PLATOS.Primary_output

在 Installshield 安装向导中,我选择安装程序查找 .Net 4.5。所以我不明白这些警告。

当我在未安装 Visual Studio(但具有最新的 Net Framework (4.5.2))的计算机上安装该软件时,程序会打开(我在任务管理器中看到)并关闭,但不显示图形用户界面。而且,当我只是将\bin\release文件夹复制到没有Visual Studio的计算机上时,程序仍然无法运行。

我的猜测是,程序以某种方式需要 installshield 警告我的文件,但是这些文件不应该已经由 .Net 4.5 安装了吗?

我见过其他线程通过在 Release模式下编译来解决问题,但我已经这样做了,所以我不知道可能出了什么问题。

感谢任何帮助。

最佳答案

您的程序似乎引用了 Microsoft.VisualStudio.CodeMarkers 程序集,顾名思义,该程序集不是分布在 .Net 框架中,而是分布在 Visual Studio 中。

在您的解决方案中,您可以通过打开“引用”文件夹来查看项目的引用。删除 Microsoft.VisualStudio.CodeMarkers,构建您的项目,看看有什么问题。右键单击该引用,选择“属性”,然后在属性 Pane 中的“本地副本”字段中选择“True”。对 Microsoft.ServiceBus 执行相同的操作。

此外,请确保您的 nuget 软件包(例如 Newtonsoft.Json)包含在 InstallShield 安装程序中以便分发。

关于.net - Installshield 限量版要求 .Net 框架文件和程序在没有 Visual Studio 的情况下无法运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30637649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com