One-Click application moving from Windows Forms to WPF

守給你的承諾、 提交于 2019-12-04 07:25:15
RobinDotNet

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

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

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.)

I haven't tried it, but could you make your WPF app directly replace your WinForms app? If you publish to the same folder, copy the right GUID's from the old project to the new project, it might just install seamlessly.

That won't remove the old versions, but every update to a ClickOnce app leaves the old versions in place.

Alternatively, can you transform your existing WinForms project into a WPF project? Is it just a different set of assembly references? I've never written a WPF app, so forgive me if this is obviously wrong.

Why not simply give the new WPF application the same <ProjectGuid>, <PublishUrl>, etc and a higher major version number?

ClickOnce won't even be aware you switched from WinForms to WPF technology.

Normal ClickOnce version update functionality will automatically replace the old code with the new the next time the application is updated (which can be set to happen automatically if desired).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!