Skip to content

Commit 76b58f4

Browse files
committed
Added PUBLISH project configuration.
1 parent d3bf290 commit 76b58f4

File tree

6 files changed

+66
-6
lines changed

6 files changed

+66
-6
lines changed

NumSharp.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Global
1919
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2020
Debug|Any CPU = Debug|Any CPU
2121
Debug|x64 = Debug|x64
22+
Publish|Any CPU = Publish|Any CPU
23+
Publish|x64 = Publish|x64
2224
Release|Any CPU = Release|Any CPU
2325
Release|x64 = Release|x64
2426
EndGlobalSection
@@ -27,6 +29,10 @@ Global
2729
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
2830
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Debug|x64.ActiveCfg = Debug|x64
2931
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Debug|x64.Build.0 = Debug|x64
32+
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
33+
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Publish|Any CPU.Build.0 = Publish|Any CPU
34+
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Publish|x64.ActiveCfg = Publish|x64
35+
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Publish|x64.Build.0 = Publish|x64
3036
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
3137
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Release|Any CPU.Build.0 = Release|Any CPU
3238
{3EDDE7AA-8037-4663-9DD4-FFB85FF962E5}.Release|x64.ActiveCfg = Release|x64
@@ -35,6 +41,10 @@ Global
3541
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Debug|Any CPU.Build.0 = Debug|Any CPU
3642
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Debug|x64.ActiveCfg = Debug|x64
3743
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Debug|x64.Build.0 = Debug|x64
44+
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
45+
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Publish|Any CPU.Build.0 = Publish|Any CPU
46+
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Publish|x64.ActiveCfg = Publish|x64
47+
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Publish|x64.Build.0 = Publish|x64
3848
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Release|Any CPU.ActiveCfg = Release|Any CPU
3949
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Release|Any CPU.Build.0 = Release|Any CPU
4050
{2D475706-0F69-4C9B-83B9-03AB1AE38186}.Release|x64.ActiveCfg = Release|x64
@@ -43,6 +53,10 @@ Global
4353
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
4454
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Debug|x64.ActiveCfg = Debug|x64
4555
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Debug|x64.Build.0 = Debug|x64
56+
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
57+
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Publish|Any CPU.Build.0 = Publish|Any CPU
58+
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Publish|x64.ActiveCfg = Publish|x64
59+
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Publish|x64.Build.0 = Publish|x64
4660
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
4761
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Release|Any CPU.Build.0 = Release|Any CPU
4862
{190A2514-31CD-4738-AF20-3492DD47DE8C}.Release|x64.ActiveCfg = Release|x64
@@ -51,6 +65,8 @@ Global
5165
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
5266
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Debug|x64.ActiveCfg = Debug|x64
5367
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Debug|x64.Build.0 = Debug|x64
68+
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Publish|Any CPU.ActiveCfg = Release|Any CPU
69+
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Publish|x64.ActiveCfg = Release|x64
5470
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
5571
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Release|Any CPU.Build.0 = Release|Any CPU
5672
{B9253A77-0652-4091-A7F5-14E9FE2630FF}.Release|x64.ActiveCfg = Release|x64
@@ -59,6 +75,10 @@ Global
5975
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Debug|Any CPU.Build.0 = Debug|Any CPU
6076
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Debug|x64.ActiveCfg = Debug|x64
6177
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Debug|x64.Build.0 = Debug|x64
78+
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
79+
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Publish|Any CPU.Build.0 = Publish|Any CPU
80+
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Publish|x64.ActiveCfg = Publish|x64
81+
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Publish|x64.Build.0 = Publish|x64
6282
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Release|Any CPU.ActiveCfg = Release|Any CPU
6383
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Release|Any CPU.Build.0 = Release|Any CPU
6484
{16C45DA5-D006-4229-B457-4F5E36D5DC55}.Release|x64.ActiveCfg = Release|x64

src/NumSharp.Bitmap/NumSharp.Bitmap.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
<Version>0.20.2</Version>
2525
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
2626
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
27-
<SignAssembly>true</SignAssembly>
27+
<SignAssembly>false</SignAssembly>
2828
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
2929
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
3030
<Platforms>AnyCPU;x64</Platforms>
3131
<PackageLicenseFile>LICENSE</PackageLicenseFile>
32+
<Configurations>Debug;Release;Publish</Configurations>
3233
</PropertyGroup>
3334

3435
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
@@ -62,10 +63,18 @@
6263
<DocumentationFile></DocumentationFile>
6364
</PropertyGroup>
6465

66+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|AnyCPU'">
67+
<DocumentationFile />
68+
</PropertyGroup>
69+
6570
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
6671
<DocumentationFile />
6772
</PropertyGroup>
6873

74+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|x64'">
75+
<DocumentationFile />
76+
</PropertyGroup>
77+
6978
<ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
7079
<PackageReference Include="System.Memory" Version="4.5.1" />
7180
</ItemGroup>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
using System.Runtime.CompilerServices;
2+
#if !SIGNING
3+
[assembly: InternalsVisibleTo("NumSharp.UnitTest")]
4+
[assembly: InternalsVisibleTo("NumSharp.Benchmark")]
5+
[assembly: InternalsVisibleTo("TensorFlowNET.UnitTest")]
6+
#endif

src/NumSharp.Core/NumSharp.Core.csproj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Optimization for all binary operators. General performance optimization. Fixed f
2727
<Version>0.20.2</Version>
2828
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
2929
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
30-
<SignAssembly>true</SignAssembly>
3130
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
3231
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
3332
<Platforms>AnyCPU;x64</Platforms>
3433
<PackageLicenseFile>LICENSE</PackageLicenseFile>
3534
<DelaySign>false</DelaySign>
35+
<Configurations>Debug;Release;Publish</Configurations>
3636
</PropertyGroup>
3737

3838
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
@@ -41,7 +41,7 @@ Optimization for all binary operators. General performance optimization. Fixed f
4141
</PropertyGroup>
4242

4343
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^netstandard\d'))">
44-
<DefineConstants>NETSTANDARD;CPU_PARALLEL;BIT64</DefineConstants>
44+
<DefineConstants>NETSTANDARD;CPU_PARALLEL;BIT64;SIGNING</DefineConstants>
4545
</PropertyGroup>
4646

4747
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^netcoreapp\d'))">
@@ -66,10 +66,20 @@ Optimization for all binary operators. General performance optimization. Fixed f
6666
<DocumentationFile></DocumentationFile>
6767
</PropertyGroup>
6868

69+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|AnyCPU'">
70+
<DocumentationFile />
71+
<Optimize>true</Optimize>
72+
<SignAssembly>true</SignAssembly>
73+
</PropertyGroup>
74+
6975
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
7076
<DocumentationFile />
7177
</PropertyGroup>
7278

79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|x64'">
80+
<DocumentationFile />
81+
</PropertyGroup>
82+
7383
<ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
7484
<PackageReference Include="System.Memory" Version="4.5.1" />
7585
</ItemGroup>

test/NumSharp.Benchmark/NumSharp.Benchmark.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<Win32Resource />
1010
<SignAssembly>true</SignAssembly>
1111
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
12+
<Configurations>Debug;Release;Publish</Configurations>
1213
</PropertyGroup>
1314

1415
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
@@ -38,10 +39,18 @@
3839
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
3940
</PropertyGroup>
4041

42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|AnyCPU'">
43+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
44+
</PropertyGroup>
45+
4146
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
4247
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4348
</PropertyGroup>
4449

50+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|x64'">
51+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
52+
</PropertyGroup>
53+
4554
<ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
4655
<PackageReference Include="System.Drawing" Version="4.0.0" />
4756
</ItemGroup>

test/NumSharp.UnitTest/NumSharp.UnitTest.csproj

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<LangVersion>latest</LangVersion>
1010
<Platforms>AnyCPU;x64</Platforms>
11-
<SignAssembly>true</SignAssembly>
1211
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
12+
<Configurations>Debug;Release;Publish</Configurations>
1313
</PropertyGroup>
1414

1515
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
@@ -22,17 +22,24 @@
2222
</PropertyGroup>
2323

2424
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^netcoreapp\d'))">
25-
<DefineConstants>NETCORE</DefineConstants>
25+
<DefineConstants>NETCORE;</DefineConstants>
2626
</PropertyGroup>
2727

2828
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
29-
<DefineConstants>DEBUG;TRACE</DefineConstants>
29+
<DefineConstants>TRACE;DEBUG;NETCORE;</DefineConstants>
3030
</PropertyGroup>
3131

3232
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
3333
<DefineConstants>DEBUG;TRACE</DefineConstants>
3434
</PropertyGroup>
3535

36+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|AnyCPU'">
37+
<DocumentationFile />
38+
<Optimize>true</Optimize>
39+
<SignAssembly>true</SignAssembly>
40+
<DefineConstants>SIGNING</DefineConstants>
41+
</PropertyGroup>
42+
3643
<ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', '^net\d'))">
3744
<PackageReference Include="System.Memory" Version="4.5.1" />
3845
</ItemGroup>

0 commit comments

Comments
 (0)