deployment - Forcing deploy/loading of a .Net "linked-list" referenced assembly -


multiple times problem has haunted me, , sorry if title not clear, hard succinctly explain mean.

i'm building asp.net application uses nhibernate , sqlite. since want able change implementation of datalayer i've separated nhibernate , sqlite assembly, references nhibernate , system.data.sqlite. copy local set true.

the problem system.data.sqlite isn't deployed test-directory. exception "the requested provider ... ", when reference system.data.sqlite directly in test-project works fine.

i've tried old trick creating static class private methods references type in assembly, works nhibernate.bytecode, seemingly not system.data.sqlite!

internal sealed class forceload {      /// <summary>     /// method required statically refer nhibernate.bytecode.castle otherwise dynamically loaded,     /// , not copied when publishing project. should never called. :)     /// </summary>     public static void ensurebyteproxyassemblyisloaded()     {         proxyfactory factory = new nhibernate.bytecode.castle.proxyfactory();     }      public static void ensuresystemdatasqliteisloaded()     {         system.data.sqlite.sqliteconnection conn = new sqliteconnection();     } } 

i'd rather not reference directly in projects...


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -