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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:20:57+00:00 2026-05-21T04:20:57+00:00

I am trying to set up TeamCity. Initially, I ran into various issues but

  • 0

I am trying to set up TeamCity. Initially, I ran into various issues but after much trial and error, I managed to perform a successful build. So I know that I can get a cut down version of my solution to build successfully.

However, one of the items that was problematic was my MSpec test. When I configured my solution to build the MSpec test project I get the following erro:

Areas\Manufacturing\Controllers\DashboardControllerSpecs.cs(7, 30): error CS0234: The type or namespace name ‘Hosts’ does not exist in the namespace ‘CompanyName.ApplicationName’ (are you missing an assembly reference?)

The fact is that it builds “fine” on my local machine but on the build server, which happens to be on my local machine, I get the error above.

What could I be doing wrong? What are the things that I should be checking to find out what I’m doing wrong?

  • 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-21T04:20:58+00:00Added an answer on May 21, 2026 at 4:20 am

    Ok,

    I think I’ve found what I was doing wrong. Effectively, we were doing version numbering in the MSBuild file. The target name was specified as “BeforeBuild”. To get TeamCity to build this, I ended up changing this to “Build”. The end result was that without the Spec project, TeamCity was building this fine but had trouble with it when the Spec project was included in the build.

    I don’t know enough to even speculate why this was happening. However, the solution was to remove the section in the MSBuild file and let TeamCity manage version numbering.

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

Sidebar

Related Questions

Alright, I've trying to set up a TeamCity server the past few hours, but
I've been trying to set issues to status fixed from my SVN commits, but
I am trying to get a build process set up in TeamCity 5, and
Trying to set up a new project, and running into a weird issue. I
Im trying to set up a session and i am getting a header error,
I am trying set up a simple dropdown list but I dont seem to
Im trying to set reminders, and im stuck with this error BNS Error: The
Trying to set up one-way SSL with Weblogic 11g and running into an issue.
Trying to set up a project but fail at Autowiring objects through Spring. package
I am trying to set up a Teamcity build configuration that runs from our

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.