Skip to content

Commit 6463c88

Browse files
authored
Add .netstandard 2.0 target (#44)
1 parent 4b89a95 commit 6463c88

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Vertical.CommandLine.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
3+
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
4+
<LangVersion>8.0</LangVersion>
45
<RootNamespace />
56
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
67
<SignAssembly>true</SignAssembly>
@@ -28,4 +29,8 @@
2829
<ItemGroup>
2930
<None Include="../assets/package-logo.png" Pack="true" Visible="false" PackagePath="" />
3031
</ItemGroup>
32+
33+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
34+
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
35+
</ItemGroup>
3136
</Project>

src/Vertical/CommandLine/CommandLineApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static void ShowHelp(ICommandLineConfiguration configuration,
9494
? new[] {helpToken}
9595
: new[] {command, helpToken};
9696

97-
Run(configuration, args);
97+
Run(configuration, args!);
9898
}
9999
}
100100
}

0 commit comments

Comments
 (0)