Skip to content

Commit 4abc3b3

Browse files
committed
#44: Sign all assemblies.
1 parent a392ac5 commit 4abc3b3

File tree

11 files changed

+66
-49
lines changed

11 files changed

+66
-49
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ ClientBin/
155155
*~
156156
*.dbmdl
157157
*.dbproj.schemaview
158-
*.pfx
159158
*.publishsettings
160159
node_modules/
161160

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.InteropServices;
32

43
[assembly: AssemblyTitle("SQLite.CodeFirst")]
54
[assembly: AssemblyDescription("A console application which demonstrates how to use SQLite.CodeFirst.")]
6-
[assembly: AssemblyProduct("SQLite.CodeFirst")]
7-
[assembly: AssemblyCopyright("Copyright © Marc Sallin")]
8-
9-
// Setting ComVisible to false makes the types in this assembly not visible
10-
// to COM components. If you need to access a type in this assembly from
11-
// COM, set the ComVisible attribute to true on that type.
12-
[assembly: ComVisible(false)]
13-
14-
// The following GUID is for the ID of the typelib if this project is exposed to COM
15-
[assembly: Guid("945f6a68-1bcd-47ff-a551-a2820b88ff8c")]
16-
17-
[assembly: AssemblyVersion("1.0.0.0")]
18-
[assembly: AssemblyFileVersion("1.0.0.0")]
19-
[assembly: AssemblyInformationalVersion("1.0.0.0")]

SQLite.CodeFirst.Console/SQLite.CodeFirst.Console.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
<ErrorReport>prompt</ErrorReport>
3737
<WarningLevel>4</WarningLevel>
3838
</PropertyGroup>
39+
<PropertyGroup>
40+
<SignAssembly>true</SignAssembly>
41+
</PropertyGroup>
42+
<PropertyGroup>
43+
<AssemblyOriginatorKeyFile>..\Shared\SQLite.CodeFirst.StrongNameKey.snk</AssemblyOriginatorKeyFile>
44+
</PropertyGroup>
3945
<ItemGroup>
4046
<Reference Include="EntityFramework">
4147
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
@@ -64,6 +70,12 @@
6470
<Reference Include="System.Xml" />
6571
</ItemGroup>
6672
<ItemGroup>
73+
<Compile Include="..\Shared\AssemblySharedInfo.cs">
74+
<Link>Properties\AssemblySharedInfo.cs</Link>
75+
</Compile>
76+
<Compile Include="..\Shared\AssemblyVersionInfo.cs">
77+
<Link>Properties\AssemblyVersionInfo.cs</Link>
78+
</Compile>
6779
<Compile Include="Entity\Coach.cs" />
6880
<Compile Include="Entity\IEntity.cs" />
6981
<Compile Include="Entity\Person.cs" />
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.InteropServices;
32

43
[assembly: AssemblyTitle("SQLite.CodeFirst.Test")]
54
[assembly: AssemblyDescription("Contains the Unit Tests for the SQLite.CodeFirst Library.")]
6-
[assembly: AssemblyProduct("SQLite.CodeFirst")]
7-
[assembly: AssemblyCopyright("Copyright © Marc Sallin")]
8-
9-
// Setting ComVisible to false makes the types in this assembly not visible
10-
// to COM components. If you need to access a type in this assembly from
11-
// COM, set the ComVisible attribute to true on that type.
12-
[assembly: ComVisible(false)]
13-
14-
[assembly: AssemblyVersion("1.0.0.0")]
15-
[assembly: AssemblyFileVersion("1.0.0.0")]
16-
[assembly: AssemblyInformationalVersion("1.0.0.0")]

SQLite.CodeFirst.Test/SQLite.CodeFirst.Test.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
</PropertyGroup>
37+
<PropertyGroup>
38+
<SignAssembly>true</SignAssembly>
39+
</PropertyGroup>
40+
<PropertyGroup>
41+
<AssemblyOriginatorKeyFile>..\Shared\SQLite.CodeFirst.StrongNameKey.snk</AssemblyOriginatorKeyFile>
42+
</PropertyGroup>
3743
<ItemGroup>
3844
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
3945
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
@@ -67,6 +73,12 @@
6773
</Otherwise>
6874
</Choose>
6975
<ItemGroup>
76+
<Compile Include="..\Shared\AssemblySharedInfo.cs">
77+
<Link>Properties\AssemblySharedInfo.cs</Link>
78+
</Compile>
79+
<Compile Include="..\Shared\AssemblyVersionInfo.cs">
80+
<Link>Properties\AssemblyVersionInfo.cs</Link>
81+
</Compile>
7082
<Compile Include="Properties\AssemblyInfo.cs" />
7183
<Compile Include="Statement\ColumnConstraint\MaxLengthConstraint.cs" />
7284
<Compile Include="Statement\ColumnConstraint\ColumnConstraintCollectionTest.cs" />

SQLite.CodeFirst.sln

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Lib", "Lib", "{436039AE-ADD
2727
Lib\Moq.dll = Lib\Moq.dll
2828
EndProjectSection
2929
EndProject
30+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{1F6D4E0E-5D07-4889-961A-A6AFC0ECD7C7}"
31+
ProjectSection(SolutionItems) = preProject
32+
Shared\AssemblySharedInfo.cs = Shared\AssemblySharedInfo.cs
33+
Shared\AssemblyVersionInfo.cs = Shared\AssemblyVersionInfo.cs
34+
Shared\SQLite.CodeFirst.StrongNameKey.snk = Shared\SQLite.CodeFirst.StrongNameKey.snk
35+
EndProjectSection
36+
EndProject
37+
EndProject
3038
Global
3139
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3240
Debug|Any CPU = Debug|Any CPU
Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
42

53
[assembly: AssemblyTitle("SQLite.CodeFirst")]
64
[assembly: AssemblyDescription(
75
"Creates a SQLite Database from Code, using Entity Framework CodeFirst. " +
86
"This Project ships several IDbInitializer which creates " +
97
"a new SQLite Database, based on your model/code.")]
10-
[assembly: AssemblyProduct("SQLite.CodeFirst")]
11-
[assembly: AssemblyCopyright("Copyright © Marc Sallin")]
12-
[assembly: AssemblyCompany("Marc Sallin")]
13-
14-
[assembly: InternalsVisibleTo("SQLite.CodeFirst.Test", AllInternalsVisible = true)]
15-
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("46603902-448a-4c50-87ec-09cb792b740f")]
24-
25-
// Will be replaced by the build server
26-
[assembly: AssemblyVersion("1.0.0.0")]
27-
[assembly: AssemblyFileVersion("1.0.0.0")]
28-
[assembly: AssemblyInformationalVersion("1.0.0.0")]

SQLite.CodeFirst/SQLite.CodeFirst.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
<PropertyGroup>
5757
<StartupObject />
5858
</PropertyGroup>
59+
<PropertyGroup>
60+
<SignAssembly>true</SignAssembly>
61+
</PropertyGroup>
62+
<PropertyGroup>
63+
<AssemblyOriginatorKeyFile>..\Shared\SQLite.CodeFirst.StrongNameKey.snk</AssemblyOriginatorKeyFile>
64+
</PropertyGroup>
5965
<!-- TargetFrameworkVersion depended references -->
6066
<ItemGroup Condition="'$(Configuration)|$(Platform)' == 'Debug-40|AnyCPU' OR '$(Configuration)|$(Platform)' == 'Release-40|AnyCPU'">
6167
<Reference Include="EntityFramework">
@@ -73,6 +79,12 @@
7379
<Reference Include="System.Data" />
7480
</ItemGroup>
7581
<ItemGroup>
82+
<Compile Include="..\Shared\AssemblySharedInfo.cs">
83+
<Link>Properties\AssemblySharedInfo.cs</Link>
84+
</Compile>
85+
<Compile Include="..\Shared\AssemblyVersionInfo.cs">
86+
<Link>Properties\AssemblyVersionInfo.cs</Link>
87+
</Compile>
7688
<Compile Include="Builder\NameCreators\IndexNameCreator.cs" />
7789
<Compile Include="Builder\NameCreators\SpecialChars.cs" />
7890
<Compile Include="Statement\ColumnConstraint\IColumnConstraintCollection.cs" />

Shared/AssemblySharedInfo.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
[assembly: AssemblyProduct("SQLite.CodeFirst")]
6+
[assembly: AssemblyCopyright("Copyright © Marc Sallin")]
7+
[assembly: AssemblyCompany("Marc Sallin")]
8+
9+
[assembly: InternalsVisibleTo("SQLite.CodeFirst.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e35b9d3bf8a8ebcbbc7414b81cc803f1e43b24996e5af0d552c54743651fc328a50977e6e3c10b31c26165a74f3abbd9fdf2b785b8b9ba48568914aec8fea586a4ffa287c9dc5bd2b6367a3cb48e840baab417e89b27b95fa7ac5bc5b926cf9c45a76b064307845c71e9161bdb6eb7f96a6bf24ee6db96f7a4b71b7408938fae", AllInternalsVisible = true)]
10+
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
11+
12+
// Setting ComVisible to false makes the types in this assembly not visible
13+
// to COM components. If you need to access a type in this assembly from
14+
// COM, set the ComVisible attribute to true on that type.
15+
[assembly: ComVisible(false)]

Shared/AssemblyVersionInfo.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Will be replaced by the build server
2+
3+
using System.Reflection;
4+
5+
[assembly: AssemblyVersion("1.0.0.0")]
6+
[assembly: AssemblyFileVersion("1.0.0.0")]
7+
[assembly: AssemblyInformationalVersion("1.0.0.0")]

0 commit comments

Comments
 (0)