Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Application.ProductVersion

0 views
Skip to first unread message

Bob Allen

unread,
Sep 14, 2001, 1:27:10 PM9/14/01
to
Does anyone know where or how to set the Application information ie.
ProductVersion, CompanyName,ProductName in C# .NetB2; I have looked
everywhere????And if you try to set thru code it is readonly?


Robert M. Cohen

unread,
Sep 14, 2001, 2:54:38 PM9/14/01
to
My best guess is that you set it in AssemblyInfo.cs, in the AssemblyVersion
attribute.

Bob Cohen


"Bob Allen" <b...@324pm.com> wrote in message
news:OT2MYLUPBHA.1740@tkmsftngp05...

Dade

unread,
Sep 14, 2001, 5:19:25 PM9/14/01
to
If you mean to put this info in the Registry you can do so by adding
this : using Microsoft.Win32; to your program, Note that I haven't done
this myself yet so this might have errors:

RegistryKey lm = Registry.LocalMachine;
RegistryKey software = lm.OpenSubKey("SOFTWARE");
software.CreateSubKey("YourProgram");
RegistryKey myProgram = software.OpenSubKey("YourProgram");
myProgram.SetValue("AppVersion",1.0);


hope this helps,
Dade


"Bob Allen" <b...@324pm.com> wrote in message
news:OT2MYLUPBHA.1740@tkmsftngp05...

0 new messages