.NET编写使用文件版本信息文件附 [英] .NET Write a file with File Version Information attached

查看:234
本文介绍了.NET编写使用文件版本信息文件附的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

反正是有说......包括版本号创建一个文本文件时?

Is there anyway to say... Include a version number when creating a text file?

基本上,我的过程是写作,我需要检查是否有可用的更新版本的文本文件。我的计划是使用FileVersionInfo来确定当前的版本和PC上的版本。但是,我不知道如何将文件写入到PC连接到该文件的版本。

Basically, my process is writing a text file that I need to check if there's a newer version available. My plan was to use FileVersionInfo to determine the current version and the version on the PC. However, I can't figure out how to write the file to the PC with a version attached to the file.

任何想法?

推荐答案

典型的选项包括在这里;

Typical options here include;

  • 散列的内容再对比
  • 在依靠onthe审核日期
  • 存储版本的文件和
  • 在该文件的第一行存储版本
  • 使用文件观察家事件(不可靠本身,大多数帐户)
  • 在使用替代数据流在NTFS

但是,没有;纯文本文件,本身不具有太多相关的元数据。

But no; plain text files don't have much associated metadata by themselves

这篇关于.NET编写使用文件版本信息文件附的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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