Questions tagged [assemblyinfo]

AssemblyInfo.cs is a standard file in c# projects that contains metadata about the assembly like its title, copyright or version, declared using .net attributes.

206 questions
1
vote
1 answer

AssemblyVersion and AssemblyFileVersion in a separate file

We have our AssemblyVersion and AssemblyFileVersion attributes in a separate properties file. This is because they are "linked" between all the projects and are updated by the build server. We don't want to have to manually update versions after…
Dave New
  • 38,496
  • 59
  • 215
  • 394
1
vote
2 answers

How can I generate a custom build number in TeamCity and then patch it to assembly info?

I have done some searching on this topic and am able to find individual solutions to generate custom build numbers as well as patch assembly info, however I am unable to accomplish both. When using a custom POWERSHELL script that I found in a…
DrDoomPDX
  • 282
  • 3
  • 12
1
vote
0 answers

Modify AssemblyInfo.cs with NAnt instead of Creating a new one

I've used in NAnt to create AssemblyInfo files from scratch. However, in this case, I would like to just modify one line in the file (AssemblyVersion). Any ideas on how to do this?
1
vote
3 answers

How to update assembly info automatically

I have a solution having 5 .NET projects. Is there a way to automate the version update in the form 1.0.* ?
Aster Veigas
  • 866
  • 3
  • 13
  • 34
1
vote
3 answers

how to write a batch file / vbscript to insert the current date and time into an AssemblyInfo file

Can anyone please show me how to write a batch file / vbscript to insert the current date and time into an AssemblyInfo file? I have a AssemblyInfo file, and I want the AssemblyDescription attribute value to be the time that the batch file was…
user2717436
  • 775
  • 1
  • 10
  • 23
1
vote
1 answer

Build Number in SQL Azure

I have an Azure web service and accompanying sql-azure db that both need to expose a version number. The service is straight forward: update the assemblyinfo to generate based on revision & build, and just expose that. How can I do something similar…
b34r
  • 589
  • 1
  • 10
  • 22
1
vote
1 answer

Can tray icon application titles be changed at runtime?

In the Control Panel applet for customizing tray icons, the application's name is shown. In a WinForms application, this name may be changed with the AssemblyTitle value at compile time, as shown in the image. Is it possible to change this value…
ladenedge
  • 13,197
  • 11
  • 60
  • 117
1
vote
1 answer

how to get assemblyinfo into XAML in windows 8?

is there any way we can bind or use the app version and other assembly info in Xaml in windows 8?
Ankit
  • 6,554
  • 6
  • 49
  • 71
1
vote
0 answers

How to use AssemblyInformationalVersionAttribute in Deployment Project

I have a C# Deployment Project, for which I would like to change the display during the installation version of the X.X.Xa (marked with the letter will be the next version of the test). For other projects can be done by attribute…
Emil J
  • 215
  • 2
  • 4
  • 20
1
vote
1 answer

MSBuild extensions AssemblyInfo fails with version number not valid

I am using the 64 bit msbuild extensions and I have this in my build file
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
1
vote
2 answers

C# - Edit informations in an Assembly

I would like to know if it's possible to edit information in an assembly ? For example, I would like to change the AssemblyTitle of my assembly after the build. [assembly: AssemblyTitle("xxxxx")] [assembly: AssemblyDescription("yyyyy")] First, I…
1
vote
1 answer

How to update assmebly version info with new build and revision during build?

I have to update the build number in assembly version of assemblyinfo.cs file. I have written a custom tasks which updates all the assmeblyinfo.cs under a solution before starting build. But when i change this file and try to build then some of my…
hrushikesh
0
votes
1 answer

Error in the AssemblyInfo file

I get the error "Error 1(E4) "end." or implementation section members (types or methods) expected." Nowhere on the internet I can find information about this error. I get this error because of this line of the AssemblyInfo.pas file: Implementation …
petko_stankoski
  • 10,459
  • 41
  • 127
  • 231
0
votes
1 answer
0
votes
1 answer

How to access AssemblyInfo generated by GitVersion.MSBuild from aspx.net framework 4.8 project

I am working on a .net project and I am not able to understand how to access the assembly version from the AssemblyVersion.cs file that is being generated by the GitVersion.MSBuild task. I would like to include the commit hash in the version of my…