.dll application name

Writing a .NET DLL How to Find Application.ProductName?

EDIT:
Obviously, importing Windows.Formsmight solve the problem, but my DLL has nothing to do with Windows Forms.

+3
source share
2 answers

The class Applicationjust needs a link to System.Window.Forms. Thus, an easier way is to add this link to * .dll and use the property.

, Windows Forms, AssemblyProductAttribute , . , , Assembly.GetEntryAssembly, .

+3

#. VB .. ++

System.Windows.Forms.Application.ProductName
+2

Source: https://habr.com/ru/post/1740461/


All Articles