amibar / SmartThreadPool

A .NET Thread Pool fully implemented in C# with many features
http://www.codeproject.com/Articles/7933/Smart-Thread-Pool
Microsoft Public License
507 stars 182 forks source link

Adding support to .NET Core 2.0 #17

Closed picadoh closed 5 years ago

picadoh commented 6 years ago

The less instrusive way found for doing this was using compiler directives to remove what's not supported in .NET Core. A csproj for .NET Core was added with .NET Core compilation specifics.

Requirements

Build

From the root directory, build the .NET Core project.

dotnet build -c Release SmartThreadPool/SmartThreadPool.NetCore.csproj

NuGet Pack

From the root directory, generate SmartThreadPool.NetCore.2.3.0.nupkg:

dotnet pack -c Release SmartThreadPool/SmartThreadPool.NetCore.csproj

NuGet Upload

From the root directory, upload to https://www.nuget.org:

dotnet nuget push <Path to NuPkg file> -s https://api.nuget.org/v3/index.json -k <NuGet API Key>
sekmenhuseyin commented 6 years ago

nice work. can we have a merge @amibar

amibar commented 5 years ago

@picadoh I finally had time to deal with this so I published a nuget that supports .NET Frameworks 4.0,4.5, and 4.6 and also .NET Standard 2.0 that can work with .NET Core.