Project builds both in VS 2013 and from the command line. Tests pass from the command line. However, NCrunch fails the 3 tests currently using RavenDB embedded in memory with the following error:
SetUp : System.IO.FileLoadException : A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
at Raven.Database.Util.MetricsCountersManager..ctor()
at Raven.Database.Indexing.WorkContext..ctor() in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Indexing\WorkContext.cs:line 48
at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState recievedTransportState) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\DocumentDatabase.cs:line 120
at Raven.Database.Server.RavenDBOptions..ctor(InMemoryRavenConfiguration configuration, DocumentDatabase db) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Server\RavenDBOptions.cs:line 54
at Raven.Database.Server.OwinHttpServer..ctor(InMemoryRavenConfiguration config, DocumentDatabase db, Boolean useHttpServer, Action`1 configure) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Server\OwinHttpServer.cs:line 24
at Raven.Server.RavenDbServer.Initialize(Action`1 configure) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Server\RavenDbServer.cs:line 106
at Raven.Database.Client.EmbeddedDocumentStore.Initialize() in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Client\EmbeddedDocumentStore.cs:line 225
at Raven.Client.Embedded.EmbeddableDocumentStore.Initialize() in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Client\EmbeddableDocumentStore.cs:line 138
at SouthsideUtility.RavenDB.Testing.RavenTestDocumentStore..ctor(Boolean ravenInMemory) in c:\Users\tom\Documents\development\SouthsideUtility\app\SouthsideUtility.RavenDB\Testing\RavenTestDocumentStore.cs:line 26
at SouthsideUtility.RavenDB.Testing.RavenDbTest..ctor() in c:\Users\tom\Documents\development\SouthsideUtility\app\SouthsideUtility.RavenDB\Testing\RavenDbTest.cs:line 12
at RabbitOperations.Collector.Tests.Unit.Configuration.SettingsTests..ctor()
If I switch the tests to use an external RavenDB server, they work fine from NCrunch.
I followed the advice to set "prevent signing of output assembly" to true for all the projects without success.
This is happening in an open source project I am working on. Source code is available at
https://github.com/South...ftware/RabbitOperations on the branch feature/signalr. It can be cloned and opened in VS 2013. Nuget packages should be downloaded automatically on build. Command line build uses powershell with this command:
> psake