一键式应用程序从Windows窗体迁移到WPF [英] One-Click application moving from Windows Forms to WPF

查看:176
本文介绍了一键式应用程序从Windows窗体迁移到WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows窗体应用程序在 WPF 最近我重新写,我需要它释放到我的最终用户。我希望能有用户进入的ClickOnce的WPF应用程序安装点,并有自己的Windows窗体应用程序删除,所以他们没有自己的两个机器上。

I have a Windows Forms application that I recently re-wrote in WPF, and I need to release it to my end users. I'd like to be able to have the users go to the ClickOnce install point for the WPF application and have their Windows Forms application removed, so they don't have both on their machine.

什么是最好的方式(阅读:最简单的用户)?实现这一点的。

What's the best way (read: easiest for users) of accomplishing this?

我曾经想过创造一个先决条件命令行来检测旧版本,卸载,但我想,以避免写的东西一样,它只能被运行一次。

I have thought about creating an prerequisite command line to detect the old version and uninstall, but I would like to avoid having to write something like that where it only gets run once.

推荐答案

我想到你居然应该能够部署WPF版本作为Windows窗体应用程序的新版本。

I think you actually SHOULD be able to deploy the WPF version as a new version of the Windows Forms application.

什么版本的.NET Framework做到每个应用程序的目标?

What version of the .NET Framework do each of the applications target?

是这两个项目的程序集的名称相同,并且是安装URL一样吗? (对于ClickOnce的,它无关的projectGUID。)

Is the assembly name on both projects the same, and is the installation URL the same? (For ClickOnce, it has nothing to do with the projectGUID.)

这篇关于一键式应用程序从Windows窗体迁移到WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆