Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 503051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:21:16+00:00 2026-05-13T06:21:16+00:00

As above really, I have some integration tests that use files from a relative

  • 0

As above really, I have some integration tests that use files from a relative file path. To help picture it here is the file structure:

/Dependencies
/VideoTests/bin/release/video.dll
/SearchTests/bin/release/search.dll
/OtherProjects

The GUI is running the tests from the root, however when TeamCity runs the tests it is running the tests from each test dlls bin directory. Now I don’t mind which one I can get to follow the other but I do need them to be the same otherwise my relative paths just won’t work!

Any ideas?

P.S. Using TeamCity 5.0 and NUnit 2.5.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:21:17+00:00Added an answer on May 13, 2026 at 6:21 am

    You probably don’t want to rely on CurrentDirectory. I’d suggest reading the doc, but the main point you’ll want to take away is that the CurrentDirectory is where the .exe was started from: it could be any path in the system. For example, let’s assume your users add your .exe (or whatever .exe uses your DLLs) to their path. They could then navigate to c:\foo\bar and start the .exe from there, which would set the CurrentDirectory to “C:\foo\bar” and you may not be able to deal with that.

    I think it would be preferable for you to rework whatever you’re doing so you don’t rely on CurrentDirectory. What problems are you encountering by relying on CurrentDirectory right now?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some SerialPort code that constantly needs to read data from a serial
I am having some problems while trying to create integration tests with Selenium and
I'm currently writing a program to generate really enormous (65536x65536 pixels and above) Mandelbrot
In Java 5 and above you have the foreach loop, which works magically on
The image above is from Wikipedia's entry on AVL trees which Wikipedia indicates is
I get the above error whenever I try and use ActionLink ? I've only
I keep getting tasks that are above my skill level. How can I address this without coming accross as grossly incompetent?
How do I do the above? There is mktime function but that treats the
I want my errors to float above, left-justified, the input field that doesn't validate.
I have a do/while loop that goes over database rows. Because it runs many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.