We're developing an app with a postgreSQL db backend (actually enterprise db)
Being in the process of writing unit tests for classes doing some db queries, I started using linq and llblgen to prepare db context for unit testing.
The testing framework used is nunit. When I run tests, the nunit output started complaining about a missing npgsql assembly (although npgsql assembly (version 2.0.6.0) is referenced in the test project) :
System.IO.FileLoadException : Could not load file or assembly 'Npgsql, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
The point is: in our startup project, it seems like we had to use an assembly redirect (in the app.config) to make the app stop complaining about the missing npgsql 1.0 dll, and link to the 2.0.6 one.
But in the context I can't tell nunit program how to redirect (except adding a redirect to the machine configuration, which I can't !)
So the question is :
Why does llblgen libs seem to search for a specific version of npgsql (1.0.0.0) with a public key token matching the 2.0.6 dll ? Where and how can I edit (template, generated project, ...) to fix this unit test runtime issue ?
Thanks in advance for any suggestion !