Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 CLI 程序,我想修改 Windows 任务管理器中显示的描述。
我尝试在Assembly Info中设置Description,但这只会更改 .exe 的Properties > Details。
在项目属性下,单击程序集信息并设置标题字段。您必须在不调试的情况下运行才能在任务管理器中正确看到描述显示。
我认为,如果在 AssemblyInfo 中:
[assembly: AssemblyProduct("")]
和
[assembly: AssemblyTitle("")]
两者都已设置,然后 AssemblyProduct 赢得 Taskmanager 描述。如果只设置了 AssemblyTitle,则显示为描述