ClickOnce中.appref-ms文件理解

ClickOnce技术:

ClickOnce是微软公司开发的一门用于在网络上发布应用程序的技术 。
ClickOnce使得用户可以从支持ClickOnce的网页中点击一个链接来运行一个程序。ClickOnce的设计目标是使得应用程序的启动和升级更加容易。

ClickOnce的安装是把文件复制到用户的配置文件下,所以不需要管理员权限,对系统的影响也比较小。.Net对ClickOnce程序采取的安全策略是基于启动位置,在默认的安全设置下,从Internet启动的程序较从本地启动的程序拥有较少的权限。

ClickOnce程序可以从程序的更新位置检查是否有更新版本,并且提示用户下载和安装新的版本。


如何找到appref-ms的目标exe文件:

The appref-ms file does not point to the exe. When you hit that shortcut, it invokes the deployment manifest at the deployment provider url and checks for updates. It checks the application manifest (yourapp.exe.manifest) to see what files to download, and this file contains the definition of the entry point (i.e. the exe).

.appref-ms不会指向exe文件。当我们点击.appref-ms文件时,会根据部署的url去启动部署文件(这个文件是服务端发布的assembly name.application文件?),然后检查部署文件是否有文件需要更新,这个部署文件也包含了exe文件的入口定义。

这个文件可以直接拖到文本编辑器中,主要由以下部分组成:

http://服务端发布地址/assembly name.application#assembly name.application, 

Culture=neutral(是否一定是这个值不知道), 

PublicKeyToken=xxxxxxxxxxxxxxxx

(一个解决方案产生的id,解决安全问题,确保该文件只能由作者修改,作者掌握私匙,并且颁布后没有被其他人篡改,作为公匙,和服务端进行验证,与证书挂钩,如果证书不改变token不改变), 

processorArchitecture=cpu架构

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在Spring Boot项目,可以使用`spring.resources.static-locations`属性来指定查找本地静态文件的位置。该属性可以在项目的配置文件(如application.properties或application.yml)进行配置。通过配置该属性,可以告诉Spring Boot在哪些目录下查找静态文件。 例如,如果想要在项目的根目录下的static文件夹和public文件查找静态文件,可以在配置文件添加以下配置: ``` spring.resources.static-locations=classpath:/static/,classpath:/public/ ``` 这样,当访问静态资源时,Spring Boot会在这两个目录下查找对应的文件。如果找到匹配的文件,就会返回给客户端。 需要注意的是,`spring.resources.static-locations`属性的值可以是一个或多个目录路径,多个路径之间使用逗号进行分隔。路径可以是相对路径或绝对路径,也可以是classpath路径。 希望这个解答对你有帮助!\[1\]\[2\]\[3\] #### 引用[.reference_title] - *1* [spring.mvc.static-path-pattern和spring.resources.static-locations](https://blog.csdn.net/baidu_38225647/article/details/109464223)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Spring Boot配置静态资源的地址与访问路径(spring.mvc.static-path-pattern和spring.web.resources.static-...](https://blog.csdn.net/weixin_38924500/article/details/109739021)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值