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 7075063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:07:57+00:00 2026-05-28T06:07:57+00:00

My VS2010 solution has a test project in it. The unit tests themselves reference

  • 0

My VS2010 solution has a test project in it. The unit tests themselves reference the following namespace:

using Microsoft.VisualStudio.TestTools.UnitTesting;

which is accessed via the following assembly on my PC:

Assembly Microsoft.VisualStudio.QualityTools.UnitTestFramework
    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\
    PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll

When I build the solution on my PC I have no issues; the tests will build and run okay.

We have an intranet page which we can use to kick off builds on a build server. When I build via this page, the build fails with the following errors:

Generator.cs(3,17): error CS0234: The type or namespace name 'VisualStudio' 
does not exist in the namespace 'Microsoft' (are you missing an assembly
reference?)

The obvious problem would be that the Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll mentioned above is not present on the build server. I thought this was would be installed with VS2010, and since the projects in my solution build .NET 4.0 targets, I would expect this to be installed on the build server.

What is the easiest way to resolve this? The build server is out of my jurisdiction and I don’t particular want to log a job to get new libraries installed on to it.

  • 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-28T06:07:58+00:00Added an answer on May 28, 2026 at 6:07 am

    The .UnitTestFramework.dll sits in C:\Program Files… folder and you have a reference to it.

    1. Create directory under your source control eg. Source/Binaries
    2. Copy the said dll into Source/Binaries
    3. Remove the reference to .UnitTestFramework.dll from your unit test assembly
    4. Add the reference to .UnitTestFramework.dll to your unit test assembly but this time select the dll that is now under Source/Binaries

    After that you can checkin your changes (make sure the Source/Binaries folder is checked in) and build the solution. When build server builds the solution it should get the dll from the source control.

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

Sidebar

Related Questions

I have a web application solution VS2010 where I output to ..\..\Project.Namespace.Bin\ When I
I have a VS2010 solution that has two projects. The first project [DevLib] is
I'm trying to compile a web project solution using MSBuild which has other web-projects
I've been using a solution since VS2010 was released. My solution has a number
I have a solution in VS2010 with 3 projects: WCFServiceLib - a project created
My C# WinForms solution has two projects. A DLL which is the main project
I'm working on a VS2010 Solution containing an ASP.NET Website Project and 8 c#
I have a solution file that has the following example projects: SharedLibrary NonSharedLibrary WebProject
I have a VS 2010 solution containing a WCF service project and a unit
I'm running VS2010 premium. One of my teammates has both the solution configuration drop-down

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.