Skip to content

Commit

Permalink
netcoreapp2.1 → net5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyagusev committed Feb 10, 2022
1 parent 9a71453 commit 1d0628b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/BookFx.Benchmark/BookFx.Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/BookFx.Benchmark/ClassProps/StackProp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public StackProp(StackPropKey key, object value)

public bool Equals(StackProp other) => Key == other.Key && Value.Equals(other.Value);

public override bool Equals(object obj) => obj is StackProp other && Equals(other);
public override bool Equals(object? obj) => obj is StackProp other && Equals(other);

public override int GetHashCode() => ((int)Key * 397) ^ Value.GetHashCode();
}
Expand Down
2 changes: 1 addition & 1 deletion src/BookFx.Tests/BookFx.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>

<IsPackable>false</IsPackable>

Expand Down
2 changes: 1 addition & 1 deletion src/BookFx.Usage/BookFx.Usage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 3 additions & 4 deletions src/BookFx.Usage/ResultStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System;
using System.IO;
using System.Reflection;

public static class ResultStore
{
Expand All @@ -18,10 +17,10 @@ public static void Save(byte[] bookBytes, string fileName)

private static string GetAssemblyDirectory()
{
var codeBase = typeof(ResultStore).Assembly.CodeBase;
var uri = new UriBuilder(codeBase);
var location = typeof(ResultStore).Assembly.Location;
var uri = new UriBuilder(location);
var path = Uri.UnescapeDataString(uri.Path);
return Path.GetDirectoryName(path);
return Path.GetDirectoryName(path)!;
}
}
}

0 comments on commit 1d0628b

Please sign in to comment.