How can I merge assembly info in c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fm42
    New Member
    • Mar 2013
    • 2

    How can I merge assembly info in c#

    I have a solution with multiple projects. Each have an assemblyinfo.cs . file Each of these files have a section that is particular for each project like

    [assembly: AssemblyTitle(" Activity Manager")]
    [assembly: AssemblyDescrip tion("Activity Manager for .Net 3.5 Framework")]

    I also have a global assemblyinfo.cs file which has items that are the same for all projects like

    [assembly: AssemblyCompany ("MyCompany" )]
    [assembly: AssemblyCopyrig ht("© 2010 MyCompany Ltd")]
    [assembly: AssemblyVersion ("11.1.1.18824" )]
    [assembly: AssemblyFileVer sion("11.1.1.18 824")]

    Is there a way of combining the 2 or including the global section in the assemblyinfo.cs for each project.

    In C++ I can do a #include but that doesn't work in c#.
  • fm42
    New Member
    • Mar 2013
    • 2

    #2
    Solution: Just add the global assemblyInfo.cs file to each project and move it ito the Properties section. Just had to make sure that non of the properies in the global file were also in the local file.

    Comment

    Working...