TINKERPOP-1785 Added strong name signing for .NET components

Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/28d0d51e
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/28d0d51e
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/28d0d51e

Branch: refs/heads/TINKERPOP-1784
Commit: 28d0d51e5ba2d82fdcf46a16811f744d61fe0c58
Parents: cb99ddb
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Sep 18 08:22:21 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Sep 20 10:10:08 2017 -0400

----------------------------------------------------------------------
 gremlin-dotnet/build/tinkerpop.snk                   | Bin 0 -> 596 bytes
 gremlin-dotnet/glv/Gremlin.Net.csproj.template       |   7 ++++++-
 gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj    |   5 +++++
 .../Gremlin.Net.IntegrationTest.csproj               |   3 +++
 .../Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj |   3 +++
 5 files changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28d0d51e/gremlin-dotnet/build/tinkerpop.snk
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/build/tinkerpop.snk 
b/gremlin-dotnet/build/tinkerpop.snk
new file mode 100644
index 0000000..3dc7333
Binary files /dev/null and b/gremlin-dotnet/build/tinkerpop.snk differ

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28d0d51e/gremlin-dotnet/glv/Gremlin.Net.csproj.template
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/glv/Gremlin.Net.csproj.template 
b/gremlin-dotnet/glv/Gremlin.Net.csproj.template
index 58fad18..59153b4 100644
--- a/gremlin-dotnet/glv/Gremlin.Net.csproj.template
+++ b/gremlin-dotnet/glv/Gremlin.Net.csproj.template
@@ -25,7 +25,9 @@ limitations under the License.
   </PropertyGroup>
 
   <PropertyGroup Label="Package">
-    <Version>${projectVersion}</Version>
+    <Version>$projectVersion</Version>
+    <FileVersion><%= (projectVersion =~ /(\d+\.\d+\.\d+).*/)[0][1] 
%>.0</FileVersion>
+    <AssemblyVersion><%= (projectVersion =~ /(\d+\.\d+)\.*/)[0][1] 
%>.0.0</AssemblyVersion>
     <Title>Gremlin.Net</Title>
     <Authors>Apache TinkerPop</Authors>
     <Description>
@@ -47,6 +49,9 @@ limitations under the License.
       included as part of the Apache TinkerPop project. The 'old' Gremlin.Net 
driver is however still supported.
       Head to https://github.com/FlorianHockmann/Gremlin.Net for more 
information.
     </Summary>
+    
<AssemblyOriginatorKeyFile>../../build/tinkerpop.snk</AssemblyOriginatorKeyFile>
+    <SignAssembly>true</SignAssembly>
+    <PublicSign Condition="'\$(OS)' != 'Windows_NT'">true</PublicSign>
     <PackageId>Gremlin.Net</PackageId>
     <PackageTags>gremlin;tinkerpop;apache</PackageTags>
     <PackageProjectUrl>http://tinkerpop.apache.org</PackageProjectUrl>

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28d0d51e/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj 
b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj
index 1b76771..0dff700 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj
+++ b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj
@@ -26,6 +26,8 @@ limitations under the License.
 
   <PropertyGroup Label="Package">
     <Version>3.2.7-SNAPSHOT</Version>
+    <FileVersion>3.2.7.0</FileVersion>
+    <AssemblyVersion>3.2.0.0</AssemblyVersion>
     <Title>Gremlin.Net</Title>
     <Authors>Apache TinkerPop</Authors>
     <Description>
@@ -47,6 +49,9 @@ limitations under the License.
       included as part of the Apache TinkerPop project. The 'old' Gremlin.Net 
driver is however still supported.
       Head to https://github.com/FlorianHockmann/Gremlin.Net for more 
information.
     </Summary>
+    
<AssemblyOriginatorKeyFile>../../build/tinkerpop.snk</AssemblyOriginatorKeyFile>
+    <SignAssembly>true</SignAssembly>
+    <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
     <PackageId>Gremlin.Net</PackageId>
     <PackageTags>gremlin;tinkerpop;apache</PackageTags>
     <PackageProjectUrl>http://tinkerpop.apache.org</PackageProjectUrl>

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28d0d51e/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj
----------------------------------------------------------------------
diff --git 
a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj
 
b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj
index 9d00a5a..c5e923d 100644
--- 
a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj
+++ 
b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj
@@ -6,6 +6,9 @@
     <AssemblyName>Gremlin.Net.IntegrationTest</AssemblyName>
     <PackageId>Gremlin.Net.IntegrationTest</PackageId>
     <RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>
+    
<AssemblyOriginatorKeyFile>../../build/tinkerpop.snk</AssemblyOriginatorKeyFile>
+    <SignAssembly>true</SignAssembly>
+    <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
   </PropertyGroup>
 
   <ItemGroup>

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28d0d51e/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj
----------------------------------------------------------------------
diff --git 
a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj 
b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj
index 41617be..eeb7c9f 100644
--- a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj
+++ b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj
@@ -6,6 +6,9 @@
     <AssemblyName>Gremlin.Net.UnitTest</AssemblyName>
     <PackageId>Gremlin.Net.UnitTest</PackageId>
     <RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>
+    
<AssemblyOriginatorKeyFile>../../build/tinkerpop.snk</AssemblyOriginatorKeyFile>
+    <SignAssembly>true</SignAssembly>
+    <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
   </PropertyGroup>
 
   <ItemGroup>

Reply via email to