test for xml file existence

B

Berryl Hesh

Specifically, the hibernate.cfg.xml file, if anyone here is familiar with
NHibernate more than I am.

I have some legacy helper code that instantiates a hibernate configuration
object (ie, cfg) and then calls cfg.Configure(). As I understand it, this
method expects to find the magic file copied to output. I want to bypass
that call if the file present.

As an aside, I tried File.Exists() but I don't actually see the xl file in
the debug folder, which should be the current directory during my test, and
it's returning false when I have made it part of my build.

Thanks,
Berryl
 
B

Berryl Hesh

How can I test for the existence of this file?

Peter Duniho said:
You seem to have left out the question. Did you have a question?

From your post, it sounds as though you might be having a problem using
File.Exists(), or you might be having a problem getting your project to
build correctly, or you might be having some other problem. If you don't
actually ask a question, it's hard to formulate an answer.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top