assemblyversionattribute

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

Version information missing from .NET assembly (Compact Framework 3.5/VS2008)

﹥>﹥吖頭↗ 提交于 2019-12-23 17:53:10
问题 I am building an executable using VS2008 and .NET compact framework 3.5, targetting Windows Mobile 6 professional, but whenever I compile the project, everything that I have specified in the AssemblyInfo.cs file is ignored. I have done this many times in other projects and it works without problem, but for some reason I cannot get the AssemblyTitle / AssemblyProduct / AssemblyVersion attributes etc to show up (I am trying to view them using Windows Explorer, I am able to see these properties

Assembly version “.001” becomes “.1”

拈花ヽ惹草 提交于 2019-12-23 09:34:42
问题 In WinForms I have an AssemblVersion [assembly: AssemblyVersion("01.01.01.002")] However when the splash screen comes up it completely ignores the zeros showing: 1.1.1.2 as the version which is very inconvenient since later I will actually want to have an assembly version [assembly: AssemblyVersion("01.01.01.200")] Is there a way to avoid this or do I Have to add some number at the beginning of last part of the version like so: [assembly: AssemblyVersion("01.01.01.102")] 回答1: The

.NET: Large revision numbers in AssemblyVersionAttribute

 ̄綄美尐妖づ 提交于 2019-12-20 08:28:02
问题 We have the convention of versioning our builds as [major].[minor].[micro].[revision], e.g. 2.1.2.33546. Our build-script automatically updates an AssemblyInfo.cs file containing [assembly: AssemblyVersion("x.y.z.w")] in order to embed the version-number in the assembly. But our Subversion-repository just reached revision #65535, which broke our build. It turns out that each number in the version-number has a maximum value of 65534 (probably due to a Windows-restriction). Have you encountered

How can I get the build number of a Visual Studio project to increment?

大憨熊 提交于 2019-12-14 01:09:35
问题 Why does building a project in Visual Studio not increment the Build number? I've got this in AssemblyInfo.cs: [assembly: AssemblyVersion("1.5.*")] ...and this in frmAbout's constructor: Version versionInfo = Assembly.GetExecutingAssembly().GetName().Version; String versionStr = String.Format("{0}.{1}.{2}.{3}", versionInfo.Major.ToString(), versionInfo.Minor.ToString(), versionInfo.Build.ToString(), versionInfo.Revision.ToString()); lblVersion.Text = String.Format("Version {0}", versionStr);

SonarQube says critical bug : provide an 'AssemblyVersion' attribute for this assembly 36 times

有些话、适合烂在心里 提交于 2019-12-13 08:45:07
问题 I am using SonarQube for the first time and a scan of my project revealed 38 bugs. 36 are the same bug: Provide an 'AssemblyVersion' attribute for this assembly. SonarQube says to resolve this bug I need to add [assembly: AssemblyTitle("MyAssembly")] [assembly: AssemblyVersionAttribute("1.2.125.0")] before the namespace in each of the 36 files... However, when I add it to even one file (With the correct title and version number) I get these errors in Visual Studio: I read this questions and

AssemblyFileVersion attribute is being ignored

孤街醉人 提交于 2019-12-11 02:48:37
问题 I am having a problem getting the AssemblyVersion to be different from the AssemblyFileVersion attributes in a class library I am working on. So, I've tried creating an empty (apart from Class1.cs) class library to see if it's a setting somewhere, but I get the same behaviour. It seems the AssemblyVersion attribute is just being ignored. Here is the relevant bit from my AssemblyInfo.cs file ... [assembly: AssemblyVersion("0.1")] [assembly: AssemblyFileVersion("1.1.0.9")] and here is how

GetCustomAttribute() returns null for AssemblyVersionAttribute

青春壹個敷衍的年華 提交于 2019-12-06 16:52:38
问题 I'm adding an About dialog to my .NET application and I'm querying the assembly's attributes for information to display. When I attempt to retrieve my assembly's AssemblyVersionAttribute using GetCustomAttribute() it returns null : // Works fine AssemblyTitleAttribute title = (AssemblyTitleAttribute)Attribute.GetCustomAttribute( someAssembly, typeof(AssemblyTitleAttribute)); // Gets null AssemblyVersionAttribute version = (AssemblyVersionAttribute)Attribute.GetCustomAttribute( someAssembly,

CS1607: The version specified for the 'file version' is not in the normal 'major.minor.build.revision' format in .NET

天大地大妈咪最大 提交于 2019-11-30 07:50:20
问题 I am trying to set my AssemblyVersion and AssemblyFileVersion attributes in my project like so: [assembly: AssemblyVersion("3.0.*")] [assembly: AssemblyFileVersion("3.0.*")] but I get this warning: CS1607: Assembly generation -- The version '3.0.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format On the AssemblyVersionAttribute Class page at MSDN is the following: You can specify all the values or you can accept the default build number, revision

CS1607: The version specified for the 'file version' is not in the normal 'major.minor.build.revision' format in .NET

故事扮演 提交于 2019-11-29 05:26:25
I am trying to set my AssemblyVersion and AssemblyFileVersion attributes in my project like so: [assembly: AssemblyVersion("3.0.*")] [assembly: AssemblyFileVersion("3.0.*")] but I get this warning: CS1607: Assembly generation -- The version '3.0.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format On the AssemblyVersionAttribute Class page at MSDN is the following: You can specify all the values or you can accept the default build number, revision number, or both by using an asterisk (*). For example, [assembly:AssemblyVersion("2.3.25.1")] indicates 2 as