By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,893 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

Help with Shared AssemblyInfo.cs and global attributes

P: n/a
All,
I am trying to figure out a clean solution to the
following issues:

(1) - We have a number of dlls/exes that need to have
the same "values" for the various assembly attributes
(like AssemblyProduct, AssemblyCompany, AssemblyCopyright,
etc.) I would like to define these values in one place
and then "use" those values in every dll/exes'
AssemblyInfo.cs. In C++ I would have probably done this
with a #define :-) Not sure of the best way to do this in
C#....I would hate to have to copy a new file/values to
each exe/dll, but I need those values to show up when you
right click on the file and choose properties...

(2) - Is there any way to define custom global
attributes WHICH WILL SHOW UP when you right click the
filename, choose properties, and then look under
the "Version" tab in the "Other version Info" listbox? I
would like to be able to add some of my own info there
(like database version, etc.) This is similar to how
the "Company" or "Comments" values are currently displayed

Thanks for any help,
Fred

Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Fred Iannon" <Fr********@yahoo.com> wrote in message
news:0e****************************@phx.gbl...
All,
I am trying to figure out a clean solution to the
following issues:

(1) - We have a number of dlls/exes that need to have
the same "values" for the various assembly attributes
(like AssemblyProduct, AssemblyCompany, AssemblyCopyright,
etc.) I would like to define these values in one place
and then "use" those values in every dll/exes'
AssemblyInfo.cs. In C++ I would have probably done this
with a #define :-) Not sure of the best way to do this in
C#....I would hate to have to copy a new file/values to
each exe/dll, but I need those values to show up when you
right click on the file and choose properties...

(2) - Is there any way to define custom global
attributes WHICH WILL SHOW UP when you right click the
filename, choose properties, and then look under
the "Version" tab in the "Other version Info" listbox? I
would like to be able to add some of my own info there
(like database version, etc.) This is similar to how
the "Company" or "Comments" values are currently displayed


Multiple projects can share the same source file. Just put it in a common
location and add it to the project using Add>Existing Item>Link (it's a
toggle under the Open button).

So just share a file called SharedAssemblyInfo.cs among all the projects and
put the shared attribute declarations there.

David
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.