test for xml file existence

  • Thread starter Thread starter Berryl Hesh
  • Start date Start date
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
 
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
 
Back
Top