vsts-assemblyinfo-task icon indicating copy to clipboard operation
vsts-assemblyinfo-task copied to clipboard

Missing input `Title` prevents setting `AssemblyTitleAttribute` of .NET runtime (core) projects

Open 0xDB6 opened this issue 1 year ago • 1 comments

Issue

In order to show a user friendly display name in Task Manager, the File description field must be set. The AssemblyTitleAttribute controls the File description field of the assembly. However, Assembly-Info-NetCore@3 does not have a Title input and thus won't allow setting the AssemblyTitleAttribute.

Expected behavior

If set manually via code or by speciying the AssemblyTitle MSBuild property, the AssemblyTitleAttribue would set the File description as follows. The task should accept a Title input which sets the AssemblyTitleAttribute.

Note: AssemblyDescriptionAttribute, and thus the Description input of the task does not set this field.

image

0xDB6 avatar Sep 20 '23 12:09 0xDB6

That could be really useful directly at assembly info task. We have a lot of .NET Core projects and we can't change the "File description" with the same task as we change in .NET Framework using the Title field, because the description field as you said, isn't to change the "file description" in the details tab.

But u could add something like dotnet build /p:AssemblyTitle="Test Assembly title" before getting the DLLs. But if you are doing a publish after a build, you should add that parameter in the publish command too.

Davi-DemK avatar Nov 25 '23 00:11 Davi-DemK