San*_*era 7 .net installshield-le visual-studio-2013
我在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
Run Code Online (Sandbox Code Playgroud)
在Installshield setup wizzard上,我选择了安装程序查找.Net 4.5.所以我不明白这些警告.
当我在没有安装Visual Studio的计算机中安装软件时(但是具有最新的Net框架(4.5.2)),程序打开(我在任务管理器中看到)并关闭而不显示GUI.此外,当我只是将\bin\release文件夹复制到没有Visual Studio的计算机时,该程序仍然无法运行.
我的猜测是,程序需要对installshield的文件提出警告,但不应该由.Net 4.5安装这些文件吗?
我已经看到其他线程通过在发布模式下编译来解决问题,但我已经这样做了,所以我不知道可能出现什么问题.
任何帮助表示赞赏.
嗯,过了很长一段时间,我发现了问题。
首先,请确保使用 NuGet 管理器安装所有依赖项。(只要有可能)
然后,就像我的情况一样,我使用 C++CLI 封装了 C++,并使用 VS 2013,手动安装Visual Studio 2013 的 Visual C++ Redistributable Packages 。
这使得程序可以在新格式化的 Windows 7 上正确执行。