Visual Studio 2010 is my DLL! - links to third-party DLLs missing after assembly

Please help me pull my hair out because of this:

I have an ASP.NET MVC Visual Studio solution in which the project references a third-party DLL, log4netin this case. My decision tree is as follows:

  • GenericLibrary
  • MyApp.NHibernate
  • Myapp.library
  • MyApp.WebUI

MyApp.WebUI is the main MVC web start project and has links to GenericLibrary, MyApp.NHibernate and MyApp.Library. MyApp.NHibernate has links to all bits of NHibernate, including log4net.

Now the problem is when I compile my solution, it looks like the log4net dlls appear and disappear from the / bin MyApp.WebUI project directory, so NHibernate clearly throws errors. I had a Windows Explorer window on my second monitor looking at the web project / bin folder, and I see that the dll log4net appears and then disappears after each compilation, it seems to happen sequentially (appears, disappears, reappears, disappears and etc.), not randomly.

The MyApp.NHibernate project is the only project that references the log4net dll, but the GenericLibrary has a reference to NHibernate, but not log4net. Links MyApp.NHibernate GenericLibrary, MyApp.Library also link to GenericLibrary, but GenericLibrary stands alone.

, , MyApp.WebUI /dll, (Nhibernate, log4net, Castle Windsor ..), log4net . / .


: kekekela, true log4net, MyApp.NHibernate, . :

alt text http://www.dominicpettifer.co.uk/Temp/DLL-Hell-1.png


2: Bizzarely , , dll log4net. DLL MyApp.NHibernate, DLL NLog, , , , log4net .

+3
1

. ".NET Framework 4 Client Profile" ".NET Framework 4", , , . msdn, .

+6

Source: https://habr.com/ru/post/1754626/


All Articles