且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VSTO的Excel加载项的ClickOnce自动更新错误

更新时间:2023-12-05 20:27:34

此错误是由于在开发和测试中使用同一台计算机所致。
要测试更新行为,请执行以下步骤:

This error is due to using the same computer in development and test. To test the update behaviour, here are the steps :


  • 将更新参数设置为程序每次启动

  • 发布V1.0.1,然后将文件移至您的网络服务器或其他

  • 发布v1.0.2,并暂时将文件分开保存

  • 使用Visual Studio清洁解决方案

  • 从服务器安装v1.0.1

  • 将v1.0.2移至服务器( vsto +应用程序文件)

  • 再次运行您的解决方案,然后查看更新过程:)

  • set the update parameter to "each time the program launch"
  • publish V1.0.1, and move the files to your webserver or other
  • publish v1.0.2, and save the files apart for the moment
  • Clean solution using Visual Studio
  • install v1.0.1 from your server
  • Move v1.0.2 to server (vsto + application files)
  • Run again your solution and see the update process going through :)