473,323 Members | 1,547 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,323 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 4291

"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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.