[英]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: 如果否,那么这是您进行调查的一个很好的起点:
Release
mode on your development PC? 它在您的开发PC上是否可以在Release
模式下工作?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.