Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why not check in AssemblyInfo.cs

I was watching a video on Git and the guy went out of his way to ignore the AssemblyInfo.cs. Why should I not check that file in? If I don't check the file in won't Visual Studio complain for the next user when he checks my code out?

like image 609
mpenrow Avatar asked Jul 19 '10 02:07

mpenrow


People also ask

How do I make AssemblyInfo CS go?

You can generate an assemblyInfo. cs by right clicking the project and chosing properties. In the application tab fill in the details and press save, this will generate the assemblyInfo.

What are the attributes of AssemblyInfo CS file?

The attributes include title, description, default alias, and configuration. The following table shows the assembly manifest attributes defined in the System. Reflection namespace.

What is AssemblyInfo VB?

The AssemblyInfo Class holds application attributes about a Visual Studio project that are applied at the assembly level. These global assembly attributes can be information on the company, product, or even the languages it supports.


1 Answers

The main downside I can think of is that AssemblyInfo.cs is the source for the various version numbers of the built assemblies.

This doesn't mean that your AssemblyInfo.cs files should not be in source control (they absolutely should in my opinion) but that developers should be very careful about checking them in.

Where I work we have an automated build process that manages the version numbers so only that process modifies the AssemblyInfo.cs files - developers modify a seperate VersionNumber file when they schedule a minor or major build that requires a signifigant version number change.

like image 186
David Hall Avatar answered Oct 20 '22 21:10

David Hall