4

I have a class which loads an xml file using the following:

Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "Xml", documentName );

The documents that are being loaded are set to copy to the output directory. However, when I run mstest the xml file is not being copied to the BaseDirectory.

Does anyone have any idea how I can accomplish this?

0

1 Answer 1

1

I believe I found the answer (as odd as it may be). By adding a testsettings document to the solution the AppDomain.CurrentDomain.BaseDirectory seems to be set currectly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.