vsts-assemblyinfo-task
vsts-assemblyinfo-task copied to clipboard
Missing input `Title` prevents setting `AssemblyTitleAttribute` of .NET runtime (core) projects
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.
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.