Skip to content

Commit d281252

Browse files
committed
default RootCommand.HelpName from ToolCommandName build property
1 parent 98308d2 commit d281252

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/System.CommandLine/System.CommandLine.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<ItemGroup>
2020
<Compile Include="..\System.Diagnostics.CodeAnalysis.cs" Link="System.Diagnostics.CodeAnalysis\System.Diagnostics.CodeAnalysis.cs" />
2121
<None Include="README.md" Pack="true" PackagePath="/README.md" />
22+
<None Include="buildTransitive\**" Pack="true" PackagePath="buildTransitive\" />
2223
</ItemGroup>
2324

2425
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project>
2+
3+
<ItemGroup Condition="'$(ToolCommandName)' != ''">
4+
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
5+
<_Parameter1>System.CommandLine.ToolCommandName</_Parameter1>
6+
<_Parameter2>$(ToolCommandName)</_Parameter2>
7+
</AssemblyAttribute>
8+
</ItemGroup>
9+
10+
</Project>

0 commit comments

Comments
 (0)