diff --git a/Insight.Database.Providers.Default/project.json b/Insight.Database.Providers.Default/project.json index 9fa4729e..c4fc85a2 100644 --- a/Insight.Database.Providers.Default/project.json +++ b/Insight.Database.Providers.Default/project.json @@ -33,7 +33,12 @@ "runtimes": { "win": {} }, "dependencies": { "Insight.Database": "1.0.0-*" + }, + + "scripts": { + "postcompile": [ + "dotnet pack --no-build --configuration %compile:Configuration%" + ] } -} -// , "compilationOptions": { "keyFile": "..\\Insight.Database.snk" } //"keyFile": "..\\Insight.Database.snk" + // , "compilationOptions": { "keyFile": "..\\Insight.Database.snk" } //"keyFile": "..\\Insight.Database.snk" } diff --git a/Insight.Database/PlatformCompatibility/DataReader/DbColumnSchemaProvider.cs b/Insight.Database/PlatformCompatibility/DataReader/DbColumnSchemaProvider.cs index e28020b2..8289c48d 100644 --- a/Insight.Database/PlatformCompatibility/DataReader/DbColumnSchemaProvider.cs +++ b/Insight.Database/PlatformCompatibility/DataReader/DbColumnSchemaProvider.cs @@ -40,6 +40,8 @@ internal ReadOnlyCollection GetColumnSchema() // TODO Review. This honors removed columns but does not respect changes to other attributes // because its a second read only copy of the data. We should subclass DbColumn and use it to hold the data? + //return new ReadOnlyCollection(_columnSchemas.Values.ToList()); + var list = new List(); foreach (IColumnSchema item in this) diff --git a/Insight.Database/project.json b/Insight.Database/project.json index b398fd25..c7f695aa 100644 --- a/Insight.Database/project.json +++ b/Insight.Database/project.json @@ -44,5 +44,11 @@ } } }, - "runtimes": { "win": {} } + "runtimes": { "win": {} }, + + "scripts": { + "postcompile": [ + "dotnet pack --no-build --configuration %compile:Configuration%" + ] + } } diff --git a/Insight.Tests/Properties/AssemblyInfo.cs b/Insight.Tests/Properties/AssemblyInfo.cs index 0dbbc98b..6bbdb3e4 100644 --- a/Insight.Tests/Properties/AssemblyInfo.cs +++ b/Insight.Tests/Properties/AssemblyInfo.cs @@ -22,4 +22,6 @@ [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: InternalsVisibleTo("Insight.Database.DynamicAssembly")] + diff --git a/Insight.Tests/project.json b/Insight.Tests/project.json index 018b9e05..74e9a8c6 100644 --- a/Insight.Tests/project.json +++ b/Insight.Tests/project.json @@ -18,7 +18,7 @@ "Insight.Database": "1.0.0-*", "Insight.Database.Providers.Default": "1.0.0-*", "NUnit": "3.4.1", - "dotnet-test-nunit": "3.4.0-beta-2" + "dotnet-test-nunit": "3.4.0-beta-3" }, "buildOptions": { "define": [ "NETCORE", "ROSLYN", "COREHACK" ]