Mayer said:
I would like to gather all my constants in one file and use it for every
project.
Which kind of "New Item" file should I add to my project: Class item, Module
item, etc.?
As ever; It depends.
If you want to have some blocks of code that you "include" in each
project and it doesn't matter if you have to recompile stuff for the
changes to take effect, then a simple Class (or Module) will do.
(Remember to "Add > Link" this file into each new Project, or you'll
wind up with endless, dissociated copies of it spread all around your
projects).
If you want something more "real time", and changing a shared property
would affect every previously-compiled application at run-time, then you
need a Dll project (which will, of course, contain a number of Classes).
Add this to the Global Assembly Cache and every application on the
machine can reuse it.
HTH,
Phill W.