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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:07:07+00:00 2026-05-15T22:07:07+00:00

Long time viewer, first time questioner here. Using Unit Tests in a separate project,

  • 0

Long time viewer, first time questioner here. Using Unit Tests in a separate project, I can’t figure out how to separate them at the release build?

Surely when I remove the reference to the Unit Test project, all the references to the Unit Test interfaces, won’t be able to find the interfaces and will cause compiler errors?

Thanks for any help.

Edit: By separating I mean removing them on the release build.

  • 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-15T22:07:08+00:00Added an answer on May 15, 2026 at 10:07 pm

    You should have built your two projects, so that the base code (That in which you are testing) has no dependencies on the unit test. It is the Unit Test that has the dependencies on your code.

    From what you wrote, I gather you wrote your code in .NET? (i.e. Assemblies?). Your project dependencies should look like this.

    // Business code

    My_Project.dll

    -> References

    —> System.dll etc..


    // Test code

    My_Project_Test.dll

    -> References

    —> My_Project.dll

    If you make your projects that way, than I think you won’t have to do anything special in your release build configuration.

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

Sidebar

Related Questions

long time reader, first time writer here. I'm trying to figure out all possible
Long time browser, first time asker... Maybe you can help. I've searched and searched,
Long time lurker, first time poster. I have found some good answers on here
long time reader/first time poster here. So I've got a checkbox array that posted
Long time lurcher, first time poster here. I've been grappling with this problem for
Long-time reader, first-time poster. I am using node v0.6.6 on OS X 10.7. I
Long time ago I made a socket based server application using the principle of
(Long time reader of SO, first time asking a q. I'm quite new to
Long-time joelonsoftware follower, 1st-time stackoverflow poster. I want to know how safely I can
Long time reader, first time poster. Any help is greatly appreciated. I have crafted

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.