Skip to content

Commit

Permalink
fix compability issue with NUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Xie committed Mar 3, 2019
1 parent 5426750 commit b14f8a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Brotli.NET/Brotli.Core/Brotli.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<Version>2.0.3.1</Version>
<Version>2.0.3.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Brotli.NET</PackageId>
<Authors>Jinjun Xie</Authors>
Expand Down
7 changes: 4 additions & 3 deletions Brotli.NET/Brotli.Core/Interop/NativeLibraryLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ internal static string[] GetPossibleRuntimeDirectories()
{
platform= "osx";
}
string runtimesDirectory = string.Format("runtimes/{0}/native", platform).Replace('/',System.IO.Path.DirectorySeparatorChar);
var netCoreAppStyleDirectory = Path.Combine(assemblyDirectory, "../..", runtimesDirectory).Replace('/', System.IO.Path.DirectorySeparatorChar);
string[] paths = new[] { assemblyDirectory, runtimesDirectory, netCoreAppStyleDirectory };
string runtimesDirectory = string.Format("runtimes/{0}/native", platform).Replace('/',Path.DirectorySeparatorChar);
string runtimesFullDirectory = Path.Combine(assemblyDirectory,runtimesDirectory).Replace('/', Path.DirectorySeparatorChar);
var netCoreAppStyleDirectory = Path.Combine(assemblyDirectory, "../..", runtimesDirectory).Replace('/', Path.DirectorySeparatorChar);
string[] paths = new[] { assemblyDirectory, runtimesFullDirectory, runtimesDirectory, netCoreAppStyleDirectory };
return paths;
}

Expand Down
2 changes: 1 addition & 1 deletion Brotli.NET/Brotli.Core/build/Brotli.NET.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<NativeLibs Include="$(MSBuildThisFileDirectory)..\runtimes\**\*.dll" />
<NativeLibs Include="$(MSBuildThisFileDirectory)..\runtimes\**\*.*" />
<None Include="@(NativeLibs)">
<Link>runtimes\%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down

0 comments on commit b14f8a1

Please sign in to comment.