diff --git a/.gitignore b/.gitignore index f8c1427..c8add9d 100644 --- a/.gitignore +++ b/.gitignore @@ -155,7 +155,6 @@ ClientBin/ *~ *.dbmdl *.dbproj.schemaview -*.pfx *.publishsettings node_modules/ diff --git a/README.md b/README.md index 5058ff8..36e756c 100644 --- a/README.md +++ b/README.md @@ -66,5 +66,9 @@ public class MyDbContextInitializer : SqliteDropCreateDatabaseAlways>>>>>> refs/remotes/msallin/master In this case please check the following issue: https://github.com/msallin/SQLiteCodeFirst/issues/13. diff --git a/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs b/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs index 02804aa..7a9242e 100644 --- a/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs +++ b/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs @@ -1,19 +1,4 @@ using System.Reflection; -using System.Runtime.InteropServices; [assembly: AssemblyTitle("SQLite.CodeFirst")] [assembly: AssemblyDescription("A console application which demonstrates how to use SQLite.CodeFirst.")] -[assembly: AssemblyProduct("SQLite.CodeFirst")] -[assembly: AssemblyCopyright("Copyright © Marc Sallin")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("945f6a68-1bcd-47ff-a551-a2820b88ff8c")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0.0")] diff --git a/SQLite.CodeFirst.Console/SQLite.CodeFirst.Console.csproj b/SQLite.CodeFirst.Console/SQLite.CodeFirst.Console.csproj index b04e945..3bf90ff 100644 --- a/SQLite.CodeFirst.Console/SQLite.CodeFirst.Console.csproj +++ b/SQLite.CodeFirst.Console/SQLite.CodeFirst.Console.csproj @@ -36,6 +36,12 @@ prompt 4 + + true + + + ..\Shared\SQLite.CodeFirst.StrongNameKey.pfx + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll @@ -64,6 +70,12 @@ + + Properties\AssemblySharedInfo.cs + + + Properties\AssemblyVersionInfo.cs + diff --git a/SQLite.CodeFirst.Test/Properties/AssemblyInfo.cs b/SQLite.CodeFirst.Test/Properties/AssemblyInfo.cs index cda4f2d..a54c997 100644 --- a/SQLite.CodeFirst.Test/Properties/AssemblyInfo.cs +++ b/SQLite.CodeFirst.Test/Properties/AssemblyInfo.cs @@ -1,16 +1,4 @@ using System.Reflection; -using System.Runtime.InteropServices; [assembly: AssemblyTitle("SQLite.CodeFirst.Test")] [assembly: AssemblyDescription("Contains the Unit Tests for the SQLite.CodeFirst Library.")] -[assembly: AssemblyProduct("SQLite.CodeFirst")] -[assembly: AssemblyCopyright("Copyright © Marc Sallin")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0.0")] diff --git a/SQLite.CodeFirst.Test/SQLite.CodeFirst.Test.csproj b/SQLite.CodeFirst.Test/SQLite.CodeFirst.Test.csproj index e4c30c6..f5e60fe 100644 --- a/SQLite.CodeFirst.Test/SQLite.CodeFirst.Test.csproj +++ b/SQLite.CodeFirst.Test/SQLite.CodeFirst.Test.csproj @@ -34,6 +34,12 @@ prompt 4 + + true + + + ..\Shared\SQLite.CodeFirst.StrongNameKey.pfx + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll @@ -67,6 +73,12 @@ + + Properties\AssemblySharedInfo.cs + + + Properties\AssemblyVersionInfo.cs + diff --git a/SQLite.CodeFirst.sln b/SQLite.CodeFirst.sln index 3a10ed8..19a84c3 100644 --- a/SQLite.CodeFirst.sln +++ b/SQLite.CodeFirst.sln @@ -27,6 +27,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Lib", "Lib", "{436039AE-ADD Lib\Moq.dll = Lib\Moq.dll EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{1F6D4E0E-5D07-4889-961A-A6AFC0ECD7C7}" + ProjectSection(SolutionItems) = preProject + Shared\AssemblySharedInfo.cs = Shared\AssemblySharedInfo.cs + Shared\AssemblyVersionInfo.cs = Shared\AssemblyVersionInfo.cs + Shared\README.txt = Shared\README.txt + Shared\SQLite.CodeFirst.StrongNameKey.pfx = Shared\SQLite.CodeFirst.StrongNameKey.pfx + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/SQLite.CodeFirst/Properties/AssemblyInfo.cs b/SQLite.CodeFirst/Properties/AssemblyInfo.cs index cb88143..59d1f3b 100644 --- a/SQLite.CodeFirst/Properties/AssemblyInfo.cs +++ b/SQLite.CodeFirst/Properties/AssemblyInfo.cs @@ -1,28 +1,7 @@ using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; [assembly: AssemblyTitle("SQLite.CodeFirst")] [assembly: AssemblyDescription( "Creates a SQLite Database from Code, using Entity Framework CodeFirst. " + "This Project ships several IDbInitializer which creates " + "a new SQLite Database, based on your model/code.")] -[assembly: AssemblyProduct("SQLite.CodeFirst")] -[assembly: AssemblyCopyright("Copyright © Marc Sallin")] -[assembly: AssemblyCompany("Marc Sallin")] - -[assembly: InternalsVisibleTo("SQLite.CodeFirst.Test", AllInternalsVisible = true)] -[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("46603902-448a-4c50-87ec-09cb792b740f")] - -// Will be replaced by the build server -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0.0")] diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj b/SQLite.CodeFirst/SQLite.CodeFirst.csproj index 844d66d..62f7526 100644 --- a/SQLite.CodeFirst/SQLite.CodeFirst.csproj +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj @@ -56,6 +56,12 @@ + + true + + + ..\Shared\SQLite.CodeFirst.StrongNameKey.pfx + @@ -73,6 +79,12 @@ + + Properties\AssemblySharedInfo.cs + + + Properties\AssemblyVersionInfo.cs + diff --git a/Shared/AssemblySharedInfo.cs b/Shared/AssemblySharedInfo.cs new file mode 100644 index 0000000..e4ed611 --- /dev/null +++ b/Shared/AssemblySharedInfo.cs @@ -0,0 +1,15 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyProduct("SQLite.CodeFirst")] +[assembly: AssemblyCopyright("Copyright © Marc Sallin")] +[assembly: AssemblyCompany("Marc Sallin")] + +[assembly: InternalsVisibleTo("SQLite.CodeFirst.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100876e960bb524e1c209574fe02f95fb325db28653f62d28ecee8ca98efcb710e62125441710d31dc21a101f4fb24149a8c2ddeb2202cd432d9cd0a00be9f81b0131a6751874906f404260ec85790c2ab0a41ab4b9ca9638158fa9a168c18f2ac1cdc3b177ab3a3b8307f16bb938cb37a568e4cc081ba78bea2bd10bfeceff5f98", AllInternalsVisible = true)] +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] diff --git a/Shared/AssemblyVersionInfo.cs b/Shared/AssemblyVersionInfo.cs new file mode 100644 index 0000000..a4af52d --- /dev/null +++ b/Shared/AssemblyVersionInfo.cs @@ -0,0 +1,7 @@ +// Will be replaced by the build server + +using System.Reflection; + +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyInformationalVersion("1.0.0.0")] diff --git a/Shared/README.txt b/Shared/README.txt new file mode 100644 index 0000000..88e2055 --- /dev/null +++ b/Shared/README.txt @@ -0,0 +1,6 @@ +******** README ********* +The Assemblies are signed with the key "SQLite.CodeFirst.StrongNameKey.pfx". +This signature does not guarantee the integrity nor the authenticity of the assemblies. +The only purpose of this signature is to make it easy to use this assemblies in a strong named project. + +Password of the strong name key: "SQLite.CodeFirst" (without quotes). \ No newline at end of file diff --git a/Shared/SQLite.CodeFirst.StrongNameKey.pfx b/Shared/SQLite.CodeFirst.StrongNameKey.pfx new file mode 100644 index 0000000..a110e33 Binary files /dev/null and b/Shared/SQLite.CodeFirst.StrongNameKey.pfx differ