Is there a way to configure the Build Action for an NHibernate mapping .hbm.xml file from within the NHibernate mapping .hbm.xml file itself or at the very least another configuration xml file?
As much as I appreciate many of Microsoft Visual Studio 2010's features, I don't like setting the "Embedded Resource" as Build Action for this hbm.xml file manually by doing the following:
- (Dislike manual approach)(Microsoft Support Docs) Right-click either the file that is of interest, then select Properties.
- (Dislike manual approach)(Microsoft Support Docs)In the Properties dialog box, locate the Build Action property. By default, this property is set to Content. Click the property and change the Build Action property to Embedded Resource.
Also, I don't like doing it programmaticly in the the CSharp code. Is there a way to configure the Build Action for an NHibernate mapping .hbm.xml file from within the NHibernate mapping .hbm.xml file itself or at the very least another configuration xml file? Could someone please suggest how I could do it using xml?