wpf应用程序的设置项目
我正在尝试使用 Visual Studio 为我的 wpf 应用程序构建 setup-msi。 我面临的问题是我强制将 wpf 项目的主要输出发送到安装项目 并且依赖性是自动计算的。 我在本地运行 msi(在我构建 wpf 应用程序的机器上),一切正常。
当我尝试将其安装在不同的计算机上时,问题就开始了。 在其他机器上我运行安装过程并且它完成得很好 但是当我尝试运行该应用程序时,我得到了有关无法找到程序集的异常。(例如 System.Web ,无法找到 Version=4,0,0,0 等)
我真的很糟糕构建设置项目,但任何人都可以给出一只手?
PS:我也尝试过installShield...同样的结果。
I am trying to build a setup-msi using visual studio for my wpf application.
The issue i am facing is that i force primary output from wpf project to the setup project
and the dependencies are calcaluted automatically.
I run the msi locally (on the machine i built the wpf app) and everything works fine.
The problems start when i try to install it on different machines.
On other machines i run the installation process and it finishes justfine
but when i try to run the application i get exceptions about assemblies that could not be found.(e.g System.Web , Version=4,0,0,0 could not be found etc)
I really suck building setup projects but can anybody give a hand?
P.S.: I also tried installShield... same results.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜测目标机器只安装了.NET Framework 4.0 Client Profile。 System.Web 位于 .NET Framework 4.0 Extended 中,它与完整的 4.0 Framework 一起安装,但不与 Client Profile 一起安装。
您是否在设置中引导 .NET 4?
检查应用程序运行良好的计算机上的“添加/删除程序”(XP) 或“程序和功能”(Vista/7) 中是否存在“Microsoft .NET Framework 4 Client Profile”和“Microsoft .NET Framework 4 Extended”它在哪里给出了这个错误。
编辑:.NET Framework 部署指南开发人员。这应该可以帮助您弄清楚如何最好地部署它。
I would guess that the target machine only had .NET Framework 4.0 Client Profile installed. System.Web is in .NET Framework 4.0 Extended, which is installed with the full 4.0 Framework but not with the Client Profile.
Are you bootstrapping .NET 4 in your setup?
Check for the presence of "Microsoft .NET Framework 4 Client Profile" and "Microsoft .NET Framework 4 Extended" in Add/Remove Programs (XP) or Programs and Features (Vista/7) on the machines where the application ran fine and those where it gave that error.
Edit: .NET Framework Deployment Guide for Developers. That should help you figure out how best to deploy it.