Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a C# (.NET 4.5) application appear in the Windows' Task Manager? [duplicate]

Tags:

c#

Do C# console applications appear in the task manager?

I'm trying to get it both to appear, and the Publisher and Process Name columns to be what I expect.

In my AssemblyInfo.cs I have done this:

[assembly: AssemblyTitle("Test Title")]
[assembly: AssemblyDescription("Test Desc")]
[assembly: AssemblyCompany("Test Company")]
[assembly: AssemblyProduct("Test Product")]

But while my console app is running (ran from command line as the current user) I don't see any of these values in the Task Manager's Processes or Details tabs (Windows 10).

I know if I create a WinForms project I can get the columns to populate as I expect in Task Manager.

Edit: My goal is to see all processes whose binary was created by my company. The "Details" tab of Task Manager shows the application filename (without extension) as the Description, and has no tab for Company/Publisher (right clicking on the header and choosing "Select Columns" doesn't have a publisher option.

The "Processes" tab does show the expected publisher, but it has no available Description column and if the program is run from the command prompt you need to first expand the correct Windows Command Processor record in Task Manager.

like image 814
Developer Webs Avatar asked Nov 08 '22 07:11

Developer Webs


1 Answers

Below is my Console Application running from the command line. So Yes, they do show up in Task Manager.

[assembly: AssemblyTitle("Stack Overflow")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("FooBar")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("StackOverflow Test")]
[assembly: AssemblyCopyright("Copyright © fooBar  2018")]

Screenshot

The Properties of the Process:

Properties

like image 171
Jimenemex Avatar answered Nov 15 '22 05:11

Jimenemex