Skip to content

Commit 7e6fd1b

Browse files
committed
added strong signing to tests to run in release mode
1 parent 3f63241 commit 7e6fd1b

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

src/Directory.Build.props

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33

4+
<Import Project="$(MsBuildThisFileDirectory)Shared\SharpGLTF.PublicKey.props"/>
5+
46
<!-- Legal =================================================================================== -->
57

68
<PropertyGroup>
@@ -29,9 +31,9 @@
2931
<!-- Condition=" '$(Configuration)' == 'Debug' " -->
3032

3133
<ItemGroup>
32-
<InternalsVisibleTo Include="SharpGLTF.Core.Tests"/>
33-
<InternalsVisibleTo Include="SharpGLTF.Toolkit.Tests"/>
34-
<InternalsVisibleTo Include="SharpGLTF.Ext.3DTiles.Tests"/>
34+
<InternalsVisibleTo Include="SharpGLTF.Core.Tests" Key="$(StrongName_PublicKey)"/>
35+
<InternalsVisibleTo Include="SharpGLTF.Toolkit.Tests" Key="$(StrongName_PublicKey)"/>
36+
<InternalsVisibleTo Include="SharpGLTF.Ext.3DTiles.Tests" Key="$(StrongName_PublicKey)"/>
3537
</ItemGroup>
3638

3739
<PropertyGroup>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
4+
<PropertyGroup>
5+
6+
<StrongName_Token>6f8b67557d279fe6</StrongName_Token>
7+
8+
<StrongName_PublicKey>0024000004800000940000000602000000240000525341310004000001000100318e6698f4f41b26736d5881759c6afde44d17c06b63d2e383c915ca1fed6ec1b6eb2e1c38013feb2320224ace549b7701e22e6e0f7770e0d72b5c199f9e969bf2c2668c0ebeb035e539fb534d9ef24053aa9997d2d72534a6c1da8ab58e353ed6eb62ad9eb1f4a044893d7a50a226e4701d4e472a7dc1918caee6794d9c4cae</StrongName_PublicKey>
9+
10+
</PropertyGroup>
11+
12+
</Project>

tests/Directory.Build.props

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@
1414
<PropertyGroup>
1515
<LangVersion>8.0</LangVersion>
1616
<IsPackable>false</IsPackable>
17-
</PropertyGroup>
17+
</PropertyGroup>
18+
19+
<!-- strong name signing -->
20+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
21+
<DelaySign>false</DelaySign>
22+
<SignAssembly>true</SignAssembly>
23+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)..\src\Shared\SharpGLTF.snk</AssemblyOriginatorKeyFile>
24+
</PropertyGroup>
1825

1926
<!-- Testing & Analysers =================================================================================== -->
2027

0 commit comments

Comments
 (0)