Search code examples
c#unit-testingnhibernatetest-project

couldn't find file hibernate.cfg.xml


I want to run a test-porject (with the usage of NHibernate).

I configured NH in the app.config.

Why do I get this error?

Could not find file 'C:\Users\elad\Documents\Visual Studio 2010\Projects\SVN\UGI\Ugi\MetadataServiceTest\bin\Debug\hibernate.cfg.xml'.


Solution

  • Make sure hibernate.cfg.xml is set as content and copy to output directory.