where does AssemblyInfo.cs company information come from?

  • Thread starter Thread starter Zytan
  • Start date Start date
Z

Zytan

The AssemblyInfo.cs file shows company information in two places:

[assembly: AssemblyCompany("COMPANY_NAME")]
[assembly: AssemblyCopyright("Copyright © COMPANY_NAME 2007")]

Where does this come from? How can I change it? Right now
COMPANY_NAME is blank, but I noticed that for VB and C# installs on
machines that already have VS with a company name, both VB and C# went
and took this same company name (I think), and now it exists in
everything those compilers produce. I wonder if this is true, since I
don't recall telling it that information.

Zytan
 
How can I change it?

I know how I can change it: Just type. I meant to ask: How can I
prevent it from defaulting to this information, so I needn't manually
fix it for every new project?

Zytan
 
Ok are you in 2.0? is so see the project property pages!!.. maybe that will
allow you to do what you want. As far as I know, I never seen the below
situation. Oh well yes for the packaging type projects I have seen them pull
it of, but that was 1.1, and if changed it got saved.

Hope I helped, if not let me know we can dig in more detail..

VJ

The AssemblyInfo.cs file shows company information in two places:

[assembly: AssemblyCompany("COMPANY_NAME")]
[assembly: AssemblyCopyright("Copyright © COMPANY_NAME 2007")]

Where does this come from? How can I change it? Right now
COMPANY_NAME is blank, but I noticed that for VB and C# installs on
machines that already have VS with a company name, both VB and C# went
and took this same company name (I think), and now it exists in
everything those compilers produce. I wonder if this is true, since I
don't recall telling it that information.

Zytan
 
Ok are you in 2.0?

I must be, I have C# 2005.
is so see the project property pages!!..

You mean Project menu -> Properties... ?
maybe that will
allow you to do what you want.

Yes, it allows me to change those settings within a dialog
(Application -> Assembly Information...), but again, this means I have
to change it for every new project. Where does the information come
from to begin with? How can I change *that* information, so that the
assembly information is already what I want it to be for each new
project?
As far as I know, I never seen the below
situation. Oh well yes for the packaging type projects I have seen them pull
it of, but that was 1.1, and if changed it got saved.

Sorry, I don't follow this. You mean you have seen a newer install of
Visual Studio for a new language grab assembly information (company
name, etc) from an older install?
Hope I helped, if not let me know we can dig in more detail..

Thanks, VJ

Zytan
 
Ok I get now what are asking. You want the blank to be pre-populated with
certain Name, for say Windows Applications that you create with
New->Project. If that is the case, and any templates that are there, they
would be under C:\Program Files\Microsoft Visual Studio 8\Common7\IDE. I
have never altered them, but I hope it will not be complicated.

VJ
 
Ok I get now what are asking. You want the blank to be pre-populated with
certain Name, for say Windows Applications that you create with
New->Project.

Yes, I want the default company name to be different. Right now it's
blank on one machine. It's the wrong company name on another (from an
old VS install, I presume).
If that is the case, and any templates that are there, they
would be under C:\Program Files\Microsoft Visual Studio 8\Common7\IDE. I
have never altered them, but I hope it will not be complicated.

I haven't made any templates. Or do you mean these are already
existing? I can't find anything there, but I'll do a thorough search
later, and see what I find.

Thanks,

Zytan
 
It should be there as Assembly.cs or of that type... if you edit that would
change the template. It should be simple. Let me know what works

VJ
 
It should be there as Assembly.cs or of that type... if you edit that would
change the template. It should be simple. Let me know what works

The only ones I can find are in zip files within subfolders of
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VCSExpress\

Zytan
 
I can't believe they still read the registry.. How will this work if run
VS.NET in Vista under restricted user, guess I cannot... interesting...

VJ
 
VJ said:
I can't believe they still read the registry.. How will this work if run VS.NET in Vista
under restricted user, guess I cannot... interesting...

It's VS who reads this info not the final application code. VS2005 has been patched (search
Vista update for VS2005) to be able to run under a restricted account and read this info
from the registry.
Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top