Software Development Material

Changing the default values for AssemblyInfo.cs

When you create a new c# project in Visual Studio the file assemblyinfo.cs is automatically created.
The contents ued for AssemblyCompany and AssemblyCopyright are stored in the registry when you install windows and read when a project is created.
As you might not be aware of how these values are used you might have entered something that you do not want to be used in your projects. The process to change the values is described in the article How to Change Name and Company Information After You Install Windows XP. The information is still valid for Vista and Windows 7 but only for the 32 bit versions.
For the 64 bit versions the registry path is:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion

The keys you have to change are still RegisteredOrganization and RegisteredOwner.
Partial content of assemblyinfo.cs before the change:

[assembly: AssemblyCompany("SomeNameIDoNotWant")]

[assembly: AssemblyCopyright("Copyright © SomeNameIDoNotWant 2010")]

After the change:

[assembly: AssemblyCompany("Michael Schreiber - Software Services")]

[assembly: AssemblyCopyright("Copyright © Michael Schreiber - Software Services 2010")]

Copyright (c) 2005-2010 - Michael Schreiber
devtogether_com