Skip to content

Commit

Permalink
added support for .net code
Browse files Browse the repository at this point in the history
  • Loading branch information
force-net committed Sep 24, 2016
1 parent 01f49aa commit 799c08a
Show file tree
Hide file tree
Showing 8 changed files with 4,093 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ obj
packages
.tools
private.snk
.idea
5 changes: 5 additions & 0 deletions Crc32.NET.Core.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Crc32.NET.Core", "Crc32.NET\Crc32.NET.Core.xproj", "{4889B52E-03E0-4632-9655-B209FBCD6EBA}"
EndProject
15 changes: 12 additions & 3 deletions Crc32.NET.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@
<owners>force</owners>
<licenseUrl>https://github.com/force-net/Crc32.NET/blob/develop/LICENSE</licenseUrl>
<projectUrl>https://github.com/force-net/Crc32.NET</projectUrl>
<!--iconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</iconUrl-->
<iconUrl>http://files.force-net.com/crc32-nuget-ico.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Fast version of Crc32 algorithm for .NET. It is up to 3x-5x times better than other "fast" implemenations. Code based on Crc32C.NET library.</description>
<releaseNotes>
Small technical update.
Small technical update. Added support for .NET Core
</releaseNotes>
<copyright>Copyright by Force 2016</copyright>
<tags>crc32 crc-32 crc .NET</tags>
<dependencies>
<group targetFramework=".NETStandard1.6">
<dependency id="NETStandard.Library" version="[1.6.0, )" />
</group>
</dependencies>
</metadata>
<files><file src="Crc32.NET\bin\Build\Crc32.NET.*" target="lib\net20" /></files>
<files>
<file src="Crc32.NET\bin\Build\Crc32.NET.*" target="lib\net20" />
<file src="Crc32.NET\bin\BuildCore\Crc32.NET.dll" target="lib\netstandard1.6" />
<file src="Crc32.NET\bin\BuildCore\Crc32.NET.xml" target="lib\netstandard1.6" />
</files>
</package>
21 changes: 21 additions & 0 deletions Crc32.NET/Crc32.NET.Core.xproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>

<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>4889B52E-03E0-4632-9655-B209FBCD6EBA</ProjectGuid>
<RootNamespace>DotNetCoreClassLibrary</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">bin\$(MSBuildProjectName)\</OutputPath>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
2 changes: 2 additions & 0 deletions Crc32.NET/Crc32Algorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public class Crc32Algorithm : HashAlgorithm
/// </summary>
public Crc32Algorithm()
{
#if !NETCORE
HashSizeValue = 32;
#endif
}

/// <summary>
Expand Down
20 changes: 20 additions & 0 deletions Crc32.NET/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "1.0.1-*",

"dependencies": {
"NETStandard.Library": "1.6.0"
},

"frameworks": {
"netstandard1.6": {
"imports": "dnxcore50"
}
},
"buildOptions": {
"xmlDoc": true,
"keyFile": "../public.snk",
"delaySign": true,
"define": ["NETCORE"],
"optimize": true
}
}
Loading

0 comments on commit 799c08a

Please sign in to comment.