Skip to content

Commit 3045910

Browse files
committed
Issue 46: Switch netcoreapp2 to netstandard2 for libraries. Removed unused using that required netcoreapp3.1. Fixed string to char. Added .NETStandard2.0 dependency to nuspec.
1 parent eb2cd79 commit 3045910

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ ClientBin/
161161
*.pfx
162162
*.publishsettings
163163
node_modules/
164+
*.nupkg
164165

165166
# RIA/Silverlight projects
166167
Generated_Code/

Algorithms/Algorithms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.0</TargetFramework>
3+
<TargetFramework>netstandard2.0</TargetFramework>
44
</PropertyGroup>
55

66
<ItemGroup>

Algorithms/Numeric/SieveOfAtkin.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using System.Reflection.Metadata.Ecma335;
32
using System.Threading.Tasks;
43

54
/***

DataStructures/Common/PrimesList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private static string[] _readResource(string resourceName)
225225
{
226226
using (var stream = typeof(PrimesList).GetTypeInfo().Assembly.GetManifestResourceStream(resourceName))
227227
using (var reader = new StreamReader(stream ?? throw new InvalidOperationException("Failed to read resource"), Encoding.UTF8))
228-
return reader.ReadToEnd().Split("\n");
228+
return reader.ReadToEnd().Split('\n');
229229
}
230230
catch (Exception ex)
231231
{

DataStructures/DataStructures.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.0</TargetFramework>
3+
<TargetFramework>netstandard2.0</TargetFramework>
44
</PropertyGroup>
55

66
<ItemGroup>

Nuget/c-sharp-algorithms.nuspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<projectUrl>https://github.com/aalhour/C-Sharp-Algorithms</projectUrl>
1212
<icon>images\icon.png</icon>
1313
<description>Plug-and-play class-library project of standard Data Structures and Algorithms in C#.</description>
14+
<dependencies>
15+
<group targetFramework=".NETStandard2.0" />
16+
</dependencies>
1417
</metadata>
1518
<files>
1619
<file src="..\Algorithms\bin\Release\**\*.*" target="lib" />

0 commit comments

Comments
 (0)