.NET Framework - Default company name and copyright information in Assembly Informa

Asked By cphk_msdn
30-Jun-08 02:50 AM
Hi everybody,

I'm trying to use the new VB 2008 right now and I want to know how to preset
the company name and copyright informtion in Assembly Information.  In my
current VB 2005, company name and copyright information (the word "CopyRight"
with company name and year) is filled in automatically once a new project is
created.  However, I have no idea where I can configurate it in my new VB
2008.

Thanks for your kindly advice!

Regards,
James Wong
Visual Studio 2008
(1)
Windows Vista
(1)
AssemblyInfo
(1)
VB.NET
(1)
XP
(1)
VB
(1)
Application
(1)
RegisteredOwner
(1)
  stchen replied...
30-Jun-08 03:47 AM
Hi James,

From your description, you're wondering how to configure the assembly
information such as "copy right", "company name"....  in Visual Studio 2008
created VB.NET project, correct?

Based on my understanding, these info is configurable at design-time via
project's properties setting. You can find the setting via the following
approach:

** In Solution Explorer, right click project node and choose "Properites"
menu

** in the opened properties view, choose the first "Application" tab at
left side(it's the default one)

** on the "application" view panel, you can see a "Assembly information..."
button, click it and will find those assembly information properties

For  VB.NET project, there is a quick way to go to Application properties,
here is a blog entry mentioned this:

http://blogs.msdn.com/trobbins/archive/2006/12/07/looking-at-assembly-inform
ation.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Informa

preset
is
  cphk_msdn replied...
30-Jun-08 04:04 AM
Hi Steven,

Thanks again for your rapid response to my question!  However, I may not
describe my question clearly.  I know how to input the company name and
copyright information project by project everytime I create a new one.  My
case is, in my existing VB 2005, whenever I create a new project, those
information is filled in automatically in Assembly.  There is no need for me
to modify manually.  But I forgot how I made it sincie it was configurated
several years ago.

Thanks again for your follow-up!

Regards,
James Wong
  Phill W. replied...
30-Jun-08 09:40 AM
(Somewhere within the Visual Basic installation) Locate and modify the
Project /Templates/ to set the Company Name and other, static text.

Modify the associated JScript code to dynamically insert the current
year - or hard-code the year as well and get ready to edit and
re-release all your templates every January 1st.   :-)

HTH,
Phill  W.
  stchen replied...
30-Jun-08 10:20 PM
Hi James,

Thanks for your quick reply and the further clarify.

Now I've got your actual goal on this. For the default values for a new
created project, those default values(put in the precreated project files
such as AssemblyInfo.xx  Form1.xx  ...) are retrieved from the project
template. You can lookup all the existing built-in project templates in the
following project template folder of Visual Studio(9.0 for vs 2008):

C:\Program Files\Microsoft Visual Studio
9.0\Common7\IDE\ProjectTemplates\VisualBasic\

For example, you can look into the package of classlibrary project:

C:\Program Files\Microsoft Visual Studio
9.0\Common7\IDE\ProjectTemplates\VisualBasic\windows\1033\classlibrary.zip

in the the zip package, you can find the "AsseblyInfo.vb" template file.
Those properties(such as assembly company copyright ) use some global
constant from visual studio or OS's registry data. If you want them to
reflect your own custom values, you can open the package and customize
it(the assemblyInfo.vb or other template files).

Here are some further reference about project templates in Visual Studio:

http://msdn.microsoft.com/en-us/library/0fyc0azh.aspx

http://msdn.microsoft.com/en-us/library/ms247119.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

me
2008
information..."
properties,
http://blogs.msdn.com/trobbins/archive/2006/12/07/looking-at-assembly-inform
and
Please
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
issues
follow
the
situations
best
contacting
rights.
Assembly
Informa
my
project
VB
  cphk_msdn replied...
01-Jul-08 10:09 PM
Hi Steven,

Thanks for your reply!  Now I understand where the default values come from
in my existing VB2005.  The value $registeredorganization$ from registry
should be the key in this case.  However, the PC I use to evaluate VB2008 is
a new one and I installed Windows Vista from DVD.  I think I may skip to
provide the value so VB2008 fails to retrieve it from registry.  Now my
question is shifted to how I can fill value in $registeredorganization$.

Thanks again for your follow-up.

Regards,
James Wong
  stchen replied...
01-Jul-08 11:33 PM
Thanks for your reply James,

Yes, I think those values should be maintained in registry, however, so far
I haven't found clear documentation on this. I'll consult some other VS IDE
engineers to see whether they have any furhter information on the settings.
I'll let you know if I get any update.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

from
is
files
the
9.0\Common7\IDE\ProjectTemplates\VisualBasic\windows\1033\classlibrary.zip
and
Please
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
rights.
Inf
not
My
for
configurated
Studio
via
following
at
http://blogs.msdn.com/trobbins/archive/2006/12/07/looking-at-assembly-inform
service
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
to
In
new
  cphk_msdn replied...
02-Jul-08 09:25 PM
Hi Steven,

From the Microsoft on-line document #310441, I found the way to modify
company information in registry.  I tried to input value in
RegisteredOrganization under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion and it works fine.  Now, the company name is filled in
assembly automatically when a new project is created.

Thanks for your kindly follow-up!

Regards,
James Wong
  stchen replied...
02-Jul-08 10:54 PM
Thanks for your followup James.

That's great. Glad that you've found the registry entry and share the
information here. That'll also benifit other members who encounter the same
problem.

If you have anything else need help in the future, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
  Timothy Carroll replied...
30-Aug-08 07:29 PM
I noticed that in Vista 64, that registry key alone is not enough.  You also have to modify the WOW64 node, which is located here...



HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion



Just modify the same RegisteredOrganization or RegisteredOwner values as in the other node.



It seems 32-bit apps (which VS2008 apparently is) look at that node, not the standard node.
Create New Account
help
Do I have Visual Studio 2008? Icon does not appear, but. . . .NET Framework I have Visual Studio 2005 on my computer. Recently I downloaded Visual Studio 2008 Express (I think). But there is no icon for Visual Studio 2008 on the desktop
MSDN Library for Visual Studio 2008 .NET Framework where can I download MSDN Library for Visual Studio 2008. I need an offline visual studio 2008 help documentation solution. thanks nick Visual Studio General Discussions Visual Studio 2008 (1) Latest
Microsoft Webcasts SQL Server 2008 Visual Studio 2008 .NET Framework Do want to attend the Microsoft SQL Server 2008 and Visual Studio 2008 sessions at your home PC?. Yes now it is possible. Microsoft has scheduled a Webcasts
Upgrade Visual Studio 6 to Visual Studio 2008? .NET Framework I have Visual Studio 6 Professional. Can I install the upgrade version of Visual Studio 2008 Professional? I cannot find this info on Microsoft's website. Visual Studio General
Visual Studio 2005 and Visual Studio 2008 on same system? .NET Framework Can Visual Studio 2005 be installed and used on the same system as Visual Studio 2008 ? and for bonus points: Can SQL Server 2005 Management Studio and Busines Intelligence