C# Project的AssemblyInfo.cs中AssemblyVersion AssemblyFileVersion的区别
Posted on 2006-11-17 14:11 AllenWang.NET 阅读(6273) 评论(1) 编辑 收藏 举报我一直不太清楚AssemblyInfo.cs中AssemblyVersion AssemblyFileVersion之间的区别,今天刚好在查TFS的版本号,需要查询Microsoft.TeamFoundation.dll的版本号能过属性可以看到:
不仅有我知道的两种版本号,还有另外种版号Product Version。
Assembly Version: 8.0.0.0
File Version: 8.0.50727.83
Product Version: 8.0.50727.83
在C# Project 中通常会在Assembly.cs中定义:
[assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.2.1.0")] // 用来定义 Product Version
AssemblyVersion is stored in the metadata table of the assembly built. It is used to uniquely identify an assembly when referenced from other assemblies. Moreover, the CLR uses this version when binding to strongly named assemblies . AssemblyFileVersion and AssemblyInformationalVersion are informational only.
一个VS.NET插件用来管理Project Version:
Versioning Controlled Build
http://www.codeproject.com/dotnet/VersioningControlledBuild.asp
网上资源
Auto Increment Build Numbers for C# Projects in VS.NET 2003
http://www.biasecurities.com/blogs/jim/archive/2003/10/08/166.aspx
Managing AssemblyVersion
http://weblogs.asp.net/sjoseph/archive/2004/02/19/76277.aspx
Using Open Source .NET Tools for Sophisticated Builds
http://www.15seconds.com/issue/040621.htm
CSDN: 自动编译,框架警察检查,文档生成,版本标注。
http://dev.csdn.net/develop/article/36/36866.shtm
UpdateVersion
http://code.mattgriffith.net/UpdateVersion/
一个工具
AssemblyVersion and Web Projects
http://odetocode.com/Blogs/scott/archive/2006/01/24/2786.aspx
因为时间有限,我并有花太多时间去完全搞懂如何去控制版本,等我需要了解时再回过头来了解。暂时把所需资源在这儿列一下。