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

  • Home
  • SEARCH
  • 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 773143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:55:06+00:00 2026-05-14T18:55:06+00:00

I am working with Visual Studio 2010 and it’s integrated testing functionality. I have

  • 0

I am working with Visual Studio 2010 and it’s integrated testing functionality.
I have an XML file in my project which is set to copy to the output directory. I can access the file just fine when I compile and run the project. But it doesn’t exist when I attempt to access it within a TestMethod.

It looks like the test is run with the working directory set to an “Out” directory created within the TestResults directory. I can set a breakpoint before I use the file. If I then copy the file into this “Out” directory and continue running the test it accesses the file properly. But that is not really how I want my automated tests to function.

Is it possible to tell VS to copy the build directory into this working directory?

  • 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-14T18:55:07+00:00Added an answer on May 14, 2026 at 6:55 pm

    I found somewhat of a solution. Though I’m not too happy with it.

    Under the Test->Edit Test Settings I edit the current settings.
    Under the Deployment tab, check the Enable deployment checkbox. In the Additional files and directories to deploy add your bin\Debug directory (looks something like src\LocalModels.test\bin\Debug)

    I suppose you could add each file you need and it would be a bit faster. It all seems a bit ridiculous.

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

Sidebar

Ask A Question

Stats

  • Questions 538k
  • Answers 538k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Because this would not be a useful utility. Since they… May 17, 2026 at 1:56 am
  • Editorial Team
    Editorial Team added an answer Edit: Based on your comments and posted code, you seem… May 17, 2026 at 1:56 am
  • Editorial Team
    Editorial Team added an answer The URL patterns you use in the WSGI application have… May 17, 2026 at 1:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I've been working with Visual Studio 2010 Beta-2 to get some advanced learning on
right now we are starting working with Visual Studio 2010 and Windows Workflow Foundation
I'm working with Beta 2 of Visual Studio 2010 to get some advanced understanding
Recently I installed in Visual Studio 2010 the Power Tools Extension It's working great,
I am using the Visual Studio 2010 RC. Sometimes when I am working on
Today I fired up Visual Studio 2010 (Visual C++) and started working on a
C# Visual Studio 2010 I am loading a complex html page into a webbrowser
I'm using MSpec and Visual Studio 2010 with Resharper 5.1. I've installed the MSpec
I am using Visual Studio 2010 Pro for simple C programming, I would like
My environment consists of Visual Studio 2010 and Windows 7 a few months ago

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.