473,385 Members | 1,486 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.

Where to define Application.ProductName?

Hello, friends,

In our c#.net 2005 project, I clicked on project property.
At application tab of property page, clicked on Assembly Information...
button,
All boxes were left blank, including Product text box,
Run the app, checked value of Application.ProductName, and there was a value
for this property!

I thought this value was defined in Product text box mentioned above, but,
obviously I was wrong.

Then, where to define Application.ProductName? Thanks a lot.
May 23 '07 #1
1 9120
Application.ProductName looks at (in order, until something non-empty
is found):
* The AssemblyProduct attribute against the entry assembly (i.e. the
exe), if defined; this is usually set in AssemblyInfo.cs as an
[assembly: AssemblyProduct("Some string")] entry, which is what the
IDE is showing you

* The ProductName set in the the exe's file metadata

* The last portion of the namespace of the Type with the entry-point
in the entry-assembly (the Type with the Main() method, in other
words)

* The name of the Type with the entry-point in the entry-assembly

Does that help? First: check for an AssemblyProduct attribute in an
unusual location...

Marc
May 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Galey | last post by:
I created a VB.NET application, together with an associated installation project, and in the installation project I specified the ProductName. But when I run the application, if I try to retrieve...
0
by: JP | last post by:
Hi, I did set the assembly attribute: <Assembly: AssemblyProduct("Verzorgingsplaatsen")> but when I call Application.Productname it returns an empty string. What's wrong? JP
2
by: A.M | last post by:
Hi, In vb.bet we have Application object that gives us information about application name and path (like Application.ProductName). How can i have Application object functionality in C# ? ...
2
by: CJ | last post by:
Hi Could anyone advise how to set the ProductName attribute of the application object Thanks CJ
1
by: DemonIT | last post by:
Hi, I am trying to set the status bar of my form to include the product name and product version. Here is my code: Private Sub initStatusBar() Dim sSBText as String =...
3
by: Lal | last post by:
dear all, how can i defaine the application path to vb.net please help me --
0
by: BobRoyAce | last post by:
I am using Visual Studio 2005 and I am publishing the Windows Forms application that I'm developing to a web site from which clients install it. When I do this, I specify that the application can...
1
by: Austere | last post by:
Hi, Could anyone help? I need to use the directory path where the application is stored. In VB it can be done using My.Application.Info.DirectoryPath What's the alternative in VC++?? Thanks in...
3
by: Water Cooler v2 | last post by:
How do you set Application object properties in design mode? I am doing a WinForms app using v1.1 of the framework and VS.NET 2003. In VB6, there used to be an App object and you could easily set...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.