Skip to content

Commit 0714d67

Browse files
committed
Start creating of NuGet package
1 parent 6357b6d commit 0714d67

File tree

8 files changed

+83
-3
lines changed

8 files changed

+83
-3
lines changed

ZstdNet.Tests/ZstdNet.Tests.csproj

+18
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,24 @@
5353
<ErrorReport>prompt</ErrorReport>
5454
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5555
</PropertyGroup>
56+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
57+
<DebugSymbols>true</DebugSymbols>
58+
<OutputPath>bin\Debug\</OutputPath>
59+
<DefineConstants>DEBUG;TRACE</DefineConstants>
60+
<DebugType>full</DebugType>
61+
<PlatformTarget>x86</PlatformTarget>
62+
<ErrorReport>prompt</ErrorReport>
63+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
64+
</PropertyGroup>
65+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
66+
<OutputPath>bin\Release\</OutputPath>
67+
<DefineConstants>TRACE</DefineConstants>
68+
<Optimize>true</Optimize>
69+
<DebugType>pdbonly</DebugType>
70+
<PlatformTarget>AnyCPU</PlatformTarget>
71+
<ErrorReport>prompt</ErrorReport>
72+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
73+
</PropertyGroup>
5674
<ItemGroup>
5775
<Reference Include="nunit.framework, Version=3.4.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
5876
<HintPath>..\packages\NUnit.3.4.1\lib\net45\nunit.framework.dll</HintPath>

ZstdNet.sln

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25420.1
4+
VisualStudioVersion = 14.0.23107.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZstdNet", "ZstdNet\ZstdNet.csproj", "{8ADBEB19-A508-471D-87A0-7443EE086E9B}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZstdNet.Tests", "ZstdNet.Tests\ZstdNet.Tests.csproj", "{8DD3694E-9532-4659-AA9F-BB01CBB9341B}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
1213
Debug|x64 = Debug|x64
1314
Debug|x86 = Debug|x86
15+
Release|Any CPU = Release|Any CPU
1416
Release|x64 = Release|x64
1517
Release|x86 = Release|x86
1618
EndGlobalSection
1719
GlobalSection(ProjectConfigurationPlatforms) = postSolution
20+
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
1822
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Debug|x64.ActiveCfg = Debug|x64
1923
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Debug|x64.Build.0 = Debug|x64
2024
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Debug|x86.ActiveCfg = Debug|x86
2125
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Debug|x86.Build.0 = Debug|x86
26+
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Release|Any CPU.Build.0 = Release|Any CPU
2228
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Release|x64.ActiveCfg = Release|x64
2329
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Release|x64.Build.0 = Release|x64
2430
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Release|x86.ActiveCfg = Release|x86
2531
{8ADBEB19-A508-471D-87A0-7443EE086E9B}.Release|x86.Build.0 = Release|x86
32+
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Debug|Any CPU.Build.0 = Debug|Any CPU
2634
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Debug|x64.ActiveCfg = Debug|x64
2735
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Debug|x64.Build.0 = Debug|x64
2836
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Debug|x86.ActiveCfg = Debug|x86
2937
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Debug|x86.Build.0 = Debug|x86
38+
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Release|Any CPU.ActiveCfg = Release|Any CPU
39+
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Release|Any CPU.Build.0 = Release|Any CPU
3040
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Release|x64.ActiveCfg = Release|x64
3141
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Release|x64.Build.0 = Release|x64
3242
{8DD3694E-9532-4659-AA9F-BB01CBB9341B}.Release|x86.ActiveCfg = Release|x86

ZstdNet/ZstdNet.csproj

+22-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,24 @@
4848
<ErrorReport>prompt</ErrorReport>
4949
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5050
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
52+
<DebugSymbols>true</DebugSymbols>
53+
<OutputPath>bin\Debug\</OutputPath>
54+
<DefineConstants>DEBUG;TRACE</DefineConstants>
55+
<DebugType>full</DebugType>
56+
<PlatformTarget>x86</PlatformTarget>
57+
<ErrorReport>prompt</ErrorReport>
58+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
59+
</PropertyGroup>
60+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
61+
<OutputPath>bin\Release\</OutputPath>
62+
<DefineConstants>TRACE</DefineConstants>
63+
<Optimize>true</Optimize>
64+
<DebugType>pdbonly</DebugType>
65+
<PlatformTarget>AnyCPU</PlatformTarget>
66+
<ErrorReport>prompt</ErrorReport>
67+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
68+
</PropertyGroup>
5169
<ItemGroup>
5270
<Reference Include="System" />
5371
</ItemGroup>
@@ -63,10 +81,12 @@
6381
<Compile Include="ThrowHelper.cs" />
6482
</ItemGroup>
6583
<ItemGroup>
66-
<None Include="..\Native\zstdlib_x64.dll" Condition="'$(Platform)' == 'x64'">
84+
<None Include="build\zstdlib_x64.dll" Condition="'$(Platform)' == 'x64'">
85+
<Link>%(FileName)%(Extension)</Link>
6786
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6887
</None>
69-
<None Include="..\Native\zstdlib_x86.dll" Condition="'$(Platform)' == 'x86'">
88+
<None Include="build\zstdlib_x86.dll" Condition="'$(Platform)' != 'x64'">
89+
<Link>%(FileName)%(Extension)</Link>
7090
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7191
</None>
7292
</ItemGroup>

ZstdNet/ZstdNet.nuspec

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<package>
3+
<metadata>
4+
<id>ZstdNet</id>
5+
<version>1.0.0</version>
6+
<title>ZstdNet</title>
7+
<authors>SKB Kontur</authors>
8+
<owners>SKB Kontur</owners>
9+
<licenseUrl>https://github.com/skbkontur/ZstdNet/blob/master/LICENSE</licenseUrl>
10+
<projectUrl>https://github.com/skbkontur/ZstdNet</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Zstd compression library wrapper for .NET</description>
13+
<copyright>2016 SKB Kontur</copyright>
14+
<tags>zstd zstandard compression</tags>
15+
</metadata>
16+
<files>
17+
<file src="build\**" target="build" />
18+
</files>
19+
</package>
File renamed without changes.

ZstdNet/build/ZstdNet.targets

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<None Include="$(MSBuildThisFileDirectory)\zstdlib_x64.dll" Condition="'$(Platform)' == 'x64'">
5+
<Link>%(FileName)%(Extension)</Link>
6+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7+
</None>
8+
<None Include="$(MSBuildThisFileDirectory)\zstdlib_x86.dll" Condition="'$(Platform)' != 'x64'">
9+
<Link>%(FileName)%(Extension)</Link>
10+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
11+
</None>
12+
</ItemGroup>
13+
</Project>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)