Assembly Versioning in .NET
In the Visual Studio 2008 IDE, the properties page allows you to access the version. However, for executables, there appears to be two versions:
Under the Publish tab, there is a publish version with a flag to auto increment.
开发者_如何学编程Under the Applications Tab (Assembly Info...) there is an assembly and file version - this appears to change the AssemblyInfo.cs file.
My question is, what is the difference between the two versions and what are the implications of setting each?
The version(s) specified in AssemblyInfo.cs are compiled into the file and are consitered to be the version of the assembly (file and product are versioned independently).
On the publish tab in the project, this is used for ClickOnce deployment so that the .NET ClickOnce engine can determine what version of the project a user has installed and it can do the appropriate update route.
精彩评论