Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Application is not a member of 'System.Windows'" error 1

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
568
US
Colleagues,
Subject line says it. But just in case:

2024-04-26_Application_is_not_a_member_of_System.Windows_error_wqhk0b.jpg


The app is Console type.
Reason for needing this: need to name the app's log file (don't want to hard-code it, y'kno...)

2024-04-26_Need4ApplicationClass_mqgpmc.jpg


The Q.:
Is there equivalent to the System.Windows.Forms Application class?
If not - how can I obtain the Console type app's name programmatically?

TIA!

Regards,

Ilya
 
System.Reflection.Assembly.GetExecutingAssembly().GetName().Name
 
Thank you, StrongM!
As usual, M$ Help was not of a help at all... and you always are! [bow]

Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top