ClickOnce更新所有文件。为什么? [英] ClickOnce updates all files. Why?

查看:181
本文介绍了ClickOnce更新所有文件。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用ClickOnce技术部署了小型wpf应用程序。问题是,当我构建新版本的客户端下载所有文件时,尽管许多这些文件没有被更改。我使用以下配置来部署清单

 < GenerateDeploymentManifest AssemblyName =MyApp.exe.application
AssemblyVersion = 1.0.0.0
DeploymentUrl =\\ ... \MyApp.exe.application
Product =Egs.Client
TargetCulture =ru-RU
描述=我的应用程序
Publisher =MyCompany
Install =true
UpdateInterval =1
UpdateUnit =Weeks
UpdateEnabled =true
UpdateMode =Background
OutputManifest =$(ApplicationFile)
MapFileExtensions =true
EntryPoint =@(DeploymentManifestEntryPoint)/>

即使我只是将1.0.0.0更改为1.0.0.1,客户端将下载整个应用程序再次。
我错过了某些东西或者是标准行为?

解决方案

如果程序集更改,将会下载。重建一个组件是一个变化。我通常跳过Visual Studio来创建部署,并使用 Mage 。然后,我不要在所有程序集建立的bin处点法师,我将其指向一个单独的文件夹,我手动复制我想要部署的程序集。有意义吗?


I've got small wpf application deployed using ClickOnce technology. The problem is that when I build new version clients download all files, though many of these files have not been changed. I use following configuration to make deployment manifest

<GenerateDeploymentManifest AssemblyName="MyApp.exe.application"
  AssemblyVersion="1.0.0.0"
  DeploymentUrl="\\...\MyApp.exe.application"
  Product="Egs.Client"
  TargetCulture="ru-RU"
  Description="My application"
  Publisher="MyCompany"
  Install="true"
  UpdateInterval="1"
  UpdateUnit="Weeks"
  UpdateEnabled="true"
  UpdateMode="Background"
  OutputManifest="$(ApplicationFile)"
  MapFileExtensions="true"
  EntryPoint="@(DeploymentManifestEntryPoint)" />

Even If I just change "1.0.0.0" to "1.0.0.1" clients will download whole application again. Am I missing something or it's standart behaviour ?

解决方案

If an assembly changes at all it will be downloaded. Rebuilding an assembly counts as a change. I typically skip Visual Studio for creating deployments and use Mage instead. Then I don't point Mage at the bin where all the assemblies get built, I point it at a separate folder where I manually copy in assemblies I want deployed. Make sense?

这篇关于ClickOnce更新所有文件。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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