473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help with Shared AssemblyInfo.cs and global attributes

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
1 4294

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chad A. Beckner | last post by:
Does anyone know how to make common database connections "common" in all aspx files? In other words, instead of creating a SQLConnection, then a DataAdapter in every ASPX file for my application,...
27
by: Javier Martinez | last post by:
Hi I have asp application in a machine with a virtual directory referring a shared directory in another machine When I try to load any aspx page of my portal I get the following error: ...
11
by: pamelafluente | last post by:
I am doing my own PrintDialog, and have placed there a combo with the printer names, as in the PrintDialog provided by VB.NET. Here is the question: how do I open the native windows printer...
1
by: Fred Iannon | last post by:
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...
1
by: Dragon | last post by:
What is the use of AssemblyInfo.cs
0
by: Hari Sekhon | last post by:
I've written an xml parser using xml.sax which works most of the time but often traces back when trying to read a file. The output of the traceback is below: Traceback (most recent call last):...
1
by: Larry | last post by:
When I browse to a file in a directory in Windows and RIGHT CLICK ON My executable, on the version tab of an executable's properties, how do you set the following fields? PLEASE EXPLAIN HOW TO DO...
2
by: James Wong | last post by:
Hi everybody, I would like to know how to retrieve information from AssemblyInfo.vb inside web service. I've tried many different ways including GetExecutingAssembly or similar method but all...
1
by: Water Cooler v2 | last post by:
Who uses the AssemblyInfo.cs file? How is it used?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.