Skip to content

Commit

Permalink
Merge pull request #7 from messerli-informatik-ag/dotnet-standard-2.0
Browse files Browse the repository at this point in the history
Add support for .NET Standard 2.0
  • Loading branch information
Jan Nils Ferner authored Mar 4, 2020
2 parents 1d5cd55 + 1af1384 commit c0ece69
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions PgpWordList/PgpWordAggregationBitConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ private static byte[] GetBytes(this short number)
=> BitConverter.GetBytes(number);

private static short ToInt16(this byte[] byteArray)
=> BitConverter.ToInt16(byteArray);
=> BitConverter.ToInt16(byteArray, startIndex: 0);

private static int ToInt32(this byte[] byteArray)
=> BitConverter.ToInt32(byteArray);
=> BitConverter.ToInt32(byteArray, startIndex: 0);

private static byte[] ReverseForLittleEndianArchitecture(this byte[] byteArray)
=> BitConverter.IsLittleEndian
Expand Down
2 changes: 1 addition & 1 deletion PgpWordList/PgpWordAggregationParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public PgpWordAggregationParser(string separator = DefaultSeparator)
public byte[] Parse(PgpWordAggregation pgpWordAggregation)
=> pgpWordAggregation
.Value
.Split(_separator)
.Split(_separator.ToCharArray())
.Aggregate(new List<byte>(), AggregateWordToByteArray)
.ToArray();

Expand Down
4 changes: 2 additions & 2 deletions PgpWordList/PgpWordList.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<AssemblyName>Messerli.PgpWordList</AssemblyName>
</PropertyGroup>
<PropertyGroup>
<Version>0.1.0</Version>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.1.1</Version>
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

## 0.1.0
- Initial release

## 0.1.1
- Add support for .NET Standard 2.0.

0 comments on commit c0ece69

Please sign in to comment.