发布时已经存在ClickOnce版本警告 [英] ClickOnce Version Already Exists Warning When Publishing

查看:74
本文介绍了发布时已经存在ClickOnce版本警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用ClickOnce发布了大约一年的应用程序,问题相对较少。



本周我不在现场,但需要对该应用程序进行一些更改以及自动更新的工作方式-因此,我将发布到本地计算机的IIS而不是正常的分发服务器进行测试。奇怪的是,从昨天下午开始,我开始收到警告



服务器上已经存在发布的版本2.1.3.18 ,您是否要覆盖它



但是我发布的版本远远超出了该版本(当前为2.1.3.32),所以我不应该



坦白说,这并没有什么坏处,我可以选择是并毫无问题地发布它,但是我想知道这是什么。发生。有人有任何想法吗?



谢谢!



编辑澄清

2.1.3.18在服务器上,但是我发布的版本大于该版本,所以不应该警告我。我发布的最后一个版本是2.1.3.32。



我上面引用的版本号是VS2008的发布选项卡中的发布版本,而不是程序集版本。 / p>

更多信息
我刚刚使用MageUI打开了MyApp.Application文件,它的版本为2.1.3.18。我删除了文件,重新编译并发布了。新文件具有完全相同的版本。但是,当我在VS Publish标签下查看时,它说部署版本为2.1.3.33。



VS在构建清单时从哪里提取2.1.3.18数字?

解决方案

我今天遇到了同样的问题,只需对项目进行清理,然后再次发布(右键单击解决方案资源管理器中的项目图标,然后 Clean )。这对我有用。


I have published an app using ClickOnce for about a year with relatively few issues.

This week I am off site, but needed to make some changes to the app and the way the autoupdate works - so I am publishing to the IIS of my local machine rather than the normal distribution server for testing. The wierd thing is that as of yesterday afternoon, I started receiving the warning

Published version 2.1.3.18 already exists on the server, do you want to overwrite it

But the version i am publishing is way beyond that (2.1.3.32 currently), so I shouldn't be receiving the warning at all.

Frankly, it's not hurting anything, I can choose yes and publish over it without any problem, but I would like to know what is happening. Does anybody have any idea?

Thanks!

EDIT FOR CLARIFICATION
2.1.3.18 is on the server, but I am publishing versions greater than that version, so I should not be warned. The last version I published was 2.1.3.32.

The version number I am referring to above is the Publish Version from the Publish tab of VS2008, not the Assembly Version.

MORE INFO I just opened my MYApp.Application file with MageUI and it says the version is 2.1.3.18. I deleted the file, recompiled and published. New file has the exact same version. Yet when I look under my VS Publish tag, it says Deployment Version is 2.1.3.33.

Where is VS pulling the 2.1.3.18 number from when building my manifest??

解决方案

I just had the same problem today, Just do a "Clean" on the project and then publish again (right click over project icon in solution explorer then Clean). This worked for me.

这篇关于发布时已经存在ClickOnce版本警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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