C#更改任何文件的FileVersionInfo [英] c# change FileVersionInfo for any file

查看:316
本文介绍了C#更改任何文件的FileVersionInfo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有了FileVersionInfo类,很容易读取文件的额外信息, 但是有什么办法可以改变它吗?

With FileVersionInfo class is very easy to read file extra information, but is there any way i can change it?

谢谢.

推荐答案

.NET Framework中没有可让您轻松完成此操作的类.文件版本数据作为本地资源存储,因此可以通过 BeginUpdateResource .但这需要有关格式的详细知识它存储在可执行文件中.

There's no class in the .NET Framework that lets you do that easily. File version data is stored as a native resource, so it can be changed by functions like BeginUpdateResource. But it requires detailed knowledge about the format in which it's are stored in the executable.

这篇关于C#更改任何文件的FileVersionInfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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