Skip to content

Commit

Permalink
Merge pull request #13 from rurku/fix_system_memory_conflict
Browse files Browse the repository at this point in the history
Fix System.Memory conflict
  • Loading branch information
rurku authored Nov 17, 2018
2 parents 4bc2e95 + f38b04d commit 7d026f1
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 23 deletions.
8 changes: 3 additions & 5 deletions ShowPics.Cli/ShowPics.Cli.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-beta0003" />
<!-- Had to add System.Numerics.Vectors explicitly to fix compilation errors with ImageSharp 1.0.0-beta0003. Might not be needed with future versions. -->
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0-preview1-26216-02" />
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-beta0005" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion ShowPics.Cli/ThumbnailCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using SixLabors.ImageSharp.MetaData;
using System.Globalization;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Transforms;
using System.Runtime.Serialization;

namespace ShowPics.Cli
Expand Down
4 changes: 2 additions & 2 deletions ShowPics.Data.Abstractions/ShowPics.Data.Abstractions.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions ShowPics.Data/ShowPics.Data.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions ShowPics.Entities/ShowPics.Entities.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

</Project>
8 changes: 4 additions & 4 deletions ShowPics.Utilities/PathHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public PathHelper(IOptions<FolderSettings> folderSettings)
public string JoinLogicalPaths(params string[] paths)
{
var normalized = paths.Select(x => x.Trim('/')).Where(x => !string.IsNullOrEmpty(x));
return string.Join('/', normalized);
return string.Join("/", normalized);
}

public string GetPhysicalPath(string logicalPath)
Expand Down Expand Up @@ -67,15 +67,15 @@ public string GetApiPath(string originalPath)

public string GetParentPath(string logicalPath)
{
var split = logicalPath.Split('/', options: StringSplitOptions.RemoveEmptyEntries);
var split = logicalPath.Split(new[] { '/' }, options: StringSplitOptions.RemoveEmptyEntries);
if (split.Length == 0)
return null;
return string.Join('/', split.Take(split.Length - 1));
return string.Join("/", split.Take(split.Length - 1));
}

public string GetName(string logicalPath)
{
var split = logicalPath.Split('/', options: StringSplitOptions.RemoveEmptyEntries);
var split = logicalPath.Split(new[] { '/' }, options: StringSplitOptions.RemoveEmptyEntries);
if (split.Length == 0)
return "";
return split.Last();
Expand Down
4 changes: 2 additions & 2 deletions ShowPics.Utilities/ShowPics.Utilities.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 0 additions & 5 deletions ShowPics/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,11 @@
},
"folderSettings": {
"Folders": [
//{
// "Name": "Zdjęcia",
// "PhysicalPath": "S:\\Obrazy\\Zdjęcia"
//},
{
"Name": "foty",
"PhysicalPath": "C:\\workspace\\temp\\foty"
}
],
//"ThumbnailsPath": "S:\\showpicsthumbnails",
"ThumbnailsPath": "C:\\workspace\\temp\\ShowPicsThumbnails",
"ConversionThreads": 4,
"ForceGCAfterEachImage": false
Expand Down

0 comments on commit 7d026f1

Please sign in to comment.