assemblyfileversion

VB.Net - What is the difference between AssemblyFileVersion & AssemblyFileVersionAttribute and AssemblyVersion & AssemblyVersionAttribute

此生再无相见时 提交于 2020-01-03 15:55:10
问题 I've inherited a VB.Net codebase which was VB 2005 and upgraded to VB 2008 consisting of around 100 projects I'm trying to re-version all of the components but have discovered some of the AssemblyInfo.vb files have an AssemblyFileVersion entry and some have an AssemblyFileVersionAttribute entry. Also, some have an AssemblyVersion entry and some have an AssemblyVersionAttribute entry. What is the difference between with and without Attribute ? Which ones should I be using? 回答1: There is no

How to determine file version of dll file in Compact Framework 3.5 [duplicate]

落爺英雄遲暮 提交于 2019-12-10 18:32:07
问题 This question already has answers here : Programmatically get the version number of a DLL (10 answers) Closed 2 years ago . I want to determine the file version of dll file in 'c#' when the path is specified. Suppose path = "\x\y\z.dll" . How to find the file version of z.dll when path is given? NOTE: I use Compact Framework 3.5 SP1 回答1: Normal Framework If it is a .NET DLL you can use Reflection. using System.Reflection; Assembly assembly = Assembly.LoadFrom("\x\y\z.dll"); Version ver =

Dynamic Versioning

随声附和 提交于 2019-12-04 20:08:47
问题 I have a situation where i want the versioning to be dynamic at build time. Version Pattern: <year>.<month>.<day>.<hhmm> But i have read where the String value used in the Attribute is reparsed at compile time. Any advise on how to get this dynamic versioning completed? Ideal situation: <Assembly: AssemblyVersion("4.0.0.0")> <Assembly: AssemblyFileVersion(Year(Now) & "." & Month(Now()) & "." & Day(Now()) & "." & String.format("hhmm", now()))> I know it wont work but should get the point

Dynamic Versioning

不羁的心 提交于 2019-12-03 13:47:40
I have a situation where i want the versioning to be dynamic at build time. Version Pattern: <year>.<month>.<day>.<hhmm> But i have read where the String value used in the Attribute is reparsed at compile time. Any advise on how to get this dynamic versioning completed? Ideal situation: <Assembly: AssemblyVersion("4.0.0.0")> <Assembly: AssemblyFileVersion(Year(Now) & "." & Month(Now()) & "." & Day(Now()) & "." & String.format("hhmm", now()))> I know it wont work but should get the point acrossed. You can use the MsbuildCommunityTasks to generate the build number and to customize the assembly