Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net C# AssemblyInfo Version Not Working

Tags:

c#

asp.net

Here is the help file I am using. It states that it still applies to version 4.6.

Yet, when I try to use the built-in calculations, with the following code:

[assembly: AssemblyVersion("2015.7.*.*")]
[assembly: AssemblyFileVersion("2015.7.*.*")]

I get syntax errors on the asterisk, and the solution won't compile. I am not sure what is going on. According to the help file, it should be working.

like image 301
Choatech Avatar asked Jul 24 '15 01:07

Choatech


1 Answers

You don't need two * just one is enough.

[assembly: AssemblyVersion("2015.7.*")]

From your link

Examples of valid version strings include:

1

1.1

1.1.*

1.1.1

1.1.1.*

1.1.1.1

Remove the AssemblyFileVersion.

If the AssemblyFileVersionAttribute is not supplied, the AssemblyVersionAttribute is used for the Win32 file version that is displayed on the Version tab of the Windows file properties dialog.

like image 133
Juan M. Elosegui Avatar answered Sep 25 '22 16:09

Juan M. Elosegui