简体   繁体   English

C#MVVM WPF创建安装项目

[英]C# MVVM WPF Create setup project

I've created a WPF project using MVVM pattern and another project for a web service. 我已经使用MVVM模式创建了一个WPF项目,并为Web服务创建了另一个项目。 In my WPF project, i've some views and I can navigate between them, everything works. 在我的WPF项目中,我有一些视图,并且可以在它们之间导航,一切正常。

Now, I want to create a setup with InstallShield, I add project outputs, etc... but when I install the application, the buttons in the main view are not working as if the viewmodels were not include in the setup. 现在,我想使用InstallShield创建安装程序,添加项目输出等。但是,当我安装该应用程序时,主视图中的按钮无法正常工作,就像视图模型未包含在安装程序中一样。

Any ideas ? 有任何想法吗 ?

Thanks. 谢谢。

Where your installation does not give you the correct results, ask yourself the following questions. 如果您的安装未提供正确的结果,请问自己以下问题。 Move to the next if you answered 'yes'. 如果您回答“是”,请移至下一个。 If no, then that is a good starting point for your investigation: 如果否,那么这是您进行调查的一个很好的起点:

  • Does it work in Release mode on your development PC? 它在您的开发PC上是否可以在Release模式下工作?
  • Did the installed application load? 安装的应用程序加载了吗?
  • Are all your project outputs present in the installation directory? 安装目录中是否存在所有项目输出?
  • Are all the installed files the right version? 所有安装的文件都是正确的版本吗?
  • Are your configuration files valid? 您的配置文件有效吗?
  • Have the correct version of the dependencies been installed? 是否安装了正确版本的依赖项? (.net version, etc) (.net版本等)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM