Implementación privada de SQL Server CE para la biblioteca de clases C # utilizada en varias aplicaciones

I'm using SQL Server CE and the Entity Framework in a C# class library. This library is used in at least three applications, i.e. the "main" program, the unit tests and the integration tests.

We decided to use SQL Server CE in prvate deployment mode (copying all needed files to the executables folder), and this works fine for the main program. When using the class library in the test, which run in other directories, we need to copy the SQL Server CE DLLs to each of these folder, which produces redundancy with all its problems.

What would be the recommended way to solve this? GAC? Set codebase in configuration?

preguntado el 31 de enero de 12 a las 08:01

Thanks for your reply, we found our way to deploy the DLLs with our tests. It's not worth mentioning here how, as it is not applicable to this problem in general but rather a custom solution. -

1 Respuestas

Why not use DeploymentItem atttribute in your test classes (can copy entire folders)

Respondido 02 Feb 12, 15:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.