Skip to content

Commit 8510eed

Browse files
authored
Merge pull request #6 from couven92/downgrade-netstandard
Support netstandard1.6
2 parents 67ba8dd + 4651fca commit 8510eed

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/CommandLineUtils/McMaster.Extensions.CommandLineUtils.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net45;;netstandard1.6;netstandard2.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<IsPackable>true</IsPackable>
77
<Description>Command-line parsing API. A community-maintained fork of Microsoft.Extensions.CommandLineUtils, plus extras.
@@ -17,4 +17,10 @@ McMaster.Extensions.CommandLineUtils.ArgumentEscaper
1717
<IncludeSource>true</IncludeSource>
1818
</PropertyGroup>
1919

20+
<ItemGroup>
21+
<PackageReference Condition="'$(TargetFramework)'=='netstandard1.6'" Include="System.AppContext" Version="4.3.0" />
22+
<PackageReference Condition="'$(TargetFramework)'=='netstandard1.6'" Include="System.Diagnostics.Process" Version="4.3.0" />
23+
<PackageReference Condition="'$(TargetFramework)'=='netstandard1.6'" Include="System.Threading.Thread" Version="4.3.0" />
24+
</ItemGroup>
25+
2026
</Project>

src/CommandLineUtils/Utilities/DotNetExe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private static string TryFindDotNetExePath()
3838
{
3939
#if NET45
4040
return "dotnet.exe";
41-
#elif NETSTANDARD2_0
41+
#elif (NETSTANDARD1_6 || NETSTANDARD2_0)
4242
var fileName = FileName;
4343

4444
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))

0 commit comments

Comments
 (0)