Skip to content

Commit

Permalink
Merge pull request #1 from matzefriedrich/feature/upgrade-nuget-packages
Browse files Browse the repository at this point in the history
Upgrades referenced packages and adopts changes to fix build errors.
  • Loading branch information
matzefriedrich authored Aug 3, 2020
2 parents 313b981 + ed9376e commit 26c8398
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/System.CommandLine.Extensions/CommandWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public CommandWrapper Option<T>(string template, string description = null, IArg
if (arity != null)
{
option.Argument = new Argument<T> {Arity = arity};
option.Required = Nullable.GetUnderlyingType(typeof(T)) == null;
option.IsRequired = Nullable.GetUnderlyingType(typeof(T)) == null;
}

this.command.AddOption(option);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public CommandlineOption Option<T>(string template, string description = null)
var option = new Option(aliases, description)
{
Argument = new Argument<T>(),
Required = Nullable.GetUnderlyingType(typeof(T)) == null
IsRequired = Nullable.GetUnderlyingType(typeof(T)) == null
};

this.rootCommand.AddOption(option);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageVersion>2.0.0-beta1.20255.1</PackageVersion>
<PackageVersion>2.0.0-beta1.20371.2</PackageVersion>
<Authors>Matthias Friedrich</Authors>
<Description>A slim command configuration and execution layer similar to Microsoft.Extensions.CommandlineUtils.</Description>
<Copyright>2020 by Matthias Friedrich</Copyright>
Expand All @@ -12,8 +12,26 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DocumentationFile>bin\Release\System.CommandLine.Extensions.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors></WarningsAsErrors>
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<WarningsAsErrors></WarningsAsErrors>
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20253.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20371.2" />
</ItemGroup>

</Project>

0 comments on commit 26c8398

Please sign in to comment.