ClickOnce Deployment
-
Hi all.. I have created a .Net desktop application by using NHibernate. I want to use ClickOnce Deployment but i am getting problem that hibernate.cfg.xml not found.. The specified file is placed in debug and release folders. Also, when we include Application Files in Publish settings, hibernate.cfg.xml not shown there.. Plz help me out... Ovais.
-
Hi all.. I have created a .Net desktop application by using NHibernate. I want to use ClickOnce Deployment but i am getting problem that hibernate.cfg.xml not found.. The specified file is placed in debug and release folders. Also, when we include Application Files in Publish settings, hibernate.cfg.xml not shown there.. Plz help me out... Ovais.
I had this problem too. To bypass i used the app.config to do the hibernate configuration.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
...
</session-factory>
</hibernate-configuration>
</configuration>