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.
Questions tagged [assemblyinfo]
206 questions
3
votes
1 answer
Is there a way to display less than 4 numbers in the assembly version?
I need to display only 3 numbers for my assembly versions, to comply with our internal guidelines
I tried removing the last digit from the AssemblyInfo file to look like this
[assembly: AssemblyVersion("0.5.0")]
[assembly:…

juan
- 80,295
- 52
- 162
- 195
3
votes
1 answer
Multiple project, single assemblies version manager
I have a solution that includes about 70 projects, each with its individual version (We are following the Version pattern).
We would like to manage the assemblies versions in a single file, something like a CommonAssembliesVersions.cs file as…

Marcomattia Mocellin
- 370
- 4
- 15
3
votes
1 answer
Git tag from AssemblyInfo version
TLDR; After installing and configuring gitversion, how do I "hook up" my git repo and .nuspec to use the generated version number by the injected AssemblyInfo ?
It's my first time trying to properly version anything automatically. So far I've always…

Mathieu VIALES
- 4,526
- 3
- 31
- 48
3
votes
0 answers
Simple approach to updating AssemblyInformationalVersion via TeamCity's AssemblyInfo patcher feature
By default a Visual Studio C# Library/Console etc project comes with an AssemblyInfo.cs file that does not include AssemblyInformationalVersionAttribute. TeamCity allows patching this attribute if found in AssemblyInfo.cs using AssemblyInfoPatcher.…

aateeque
- 2,161
- 5
- 23
- 35
3
votes
2 answers
Accessing Assembly Information GUID in a C# Form Application
I would like to use the GUID in the Assembly Information of my Microsoft Visual C# 2008 Express Edition project for use in a Mutex that is used to verify that only one instance of the application is running. How can the GUID be accessed? I only…

Jim Fell
- 13,750
- 36
- 127
- 202
3
votes
1 answer
WPF Application has 2 different names
My application has 2 different names, but I cannot find in the AssemblyInfo or anywhere in my project where the 2nd name is coming from. It was called this a long while ago, but it was renamed since.
This is what my application title is from the…

Dustin Jensen
- 465
- 1
- 6
- 16
3
votes
2 answers
Versioning CommonAssemblyInfo.cs and MSBuild
So I have a CommonAssemblyInfo.cs linked into all the projects in my solution and is dynamically generated by my rake/albacore scripts which is not checked into source control.
I also have a CommonAssemblyInfo.cs.local for use when there is no ruby…

James Thigpen
- 869
- 1
- 9
- 25
3
votes
1 answer
Best practice bundle product versioning (assembly info)
I am just about to introduce bundle version to one product (.net c#) into AssemblyInfo.cs file and I have a question if is possible to create new assembly info parameter (BundleVersion), which could bring the defined version number into .dll…

st35ly
- 1,215
- 18
- 24
3
votes
3 answers
Version information missing from .NET assembly (Compact Framework 3.5/VS2008)
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…

Martin Robins
- 6,033
- 10
- 58
- 95
3
votes
4 answers
.Net Is it better to check in the updated AssemblyInfo.cs in a daily build?
At my job, the assembly version of each project in the source control is kept to 1.0.0.0. When the build machine make a new daily build, it has a task to update the assembly version but does not check in the updated assemblyinfo.cs. So on our dev…

Jeff Cyr
- 4,774
- 1
- 28
- 42
3
votes
2 answers
Are Visual Studio 2008 and Visual Studio 2012 solutions"compatible"?
I edited my project (which was written in school using Visual Studio 2008) at home using Visual Studio 2010 Express. When I got back to school, I couldn't open my solution anymore as Visual Studio 2008 told me that the file was created with a newer…

LeonidasFett
- 3,052
- 4
- 46
- 76
2
votes
1 answer
How to handle fixed and variable [assembly] items if both seem to be present mandatory inside one file?
I'm setting up a Build Server, also known as a Continuous Integration Server, based on Jenkins, for building C# applications and DLLs.
I have an AssemblyInfo.cs file, which contains two kinds of information:
Fixed information, like:
[assembly:…

Dominique
- 16,450
- 15
- 56
- 112
2
votes
1 answer
Application.UserAppDataPath strange behaviour
When I use Application.UserAppDataPath to get to configs, I've got a ArgumentException "Illegal characters in path."
According to Microsoft it is not a bug, but a feature;
The only way how you can get an illegal character in…

MajesticRa
- 13,770
- 12
- 63
- 77
2
votes
1 answer
Programmatically access metadata from project file
In VS2019 / .NET Core 3.0, the project metadata is saved in the project file:
WinExe
netcoreapp3.0
true
.....
…

Joachim
- 23
- 2
2
votes
1 answer
How can you share Assembly Info between VS 2019-formatted projects?
In VS 2017, or more accurately, the old project format used in VS 2017, each project had a 'Properties' folder with an AssemblyInfo.cs file which held things like project version, copyright, etc.
If you wanted to share some of that information…

Mark A. Donohoe
- 28,442
- 25
- 137
- 286