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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:51:26+00:00 2026-05-28T00:51:26+00:00

We are using moles 0.94 for some tests in our solution. However, every time

  • 0

We are using moles 0.94 for some tests in our solution. However, every time it gets first compiled, the build server will raise a couple of warnings:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1360): Could not resolve this reference. 
Could not locate the assembly "XXX.Moles, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL". 
Check to make sure the assembly exists on disk. 
If this reference is required by your code, you may get compilation errors.

My understanding is that the build server will try to resolve all the references of the test project before starting to build, and if it cannot find the moles dll under the molesassembly folder (because in the first time, it’s empty), it will generate a warning like the above.

But when msbuild starts to build this test project, the mole assemblies will be generated and copied into the moleassemblies folder, so it won’t turn into an error.

In summary, for the first time, the build will partially succeed and the next time build will fully succeed.

We are trying not to have any warnings on the build server. Is there any way we can eliminate this warnning on the build server?

  • 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-28T00:51:26+00:00Added an answer on May 28, 2026 at 12:51 am

    We have all 3rd party assemblies stored in the Assemblies folder in the project’s root folder. All 3rd party assemblies used in any of our projects are referenced from this location. Assemblies folder is included in the TFS.

    It seems like you are referencing XXX.Moles assemblies from the output folder instead of some common (Assemblies) folder. Try to update your references to use 3rd party libraries from Assemblies folder instead of output folder of your test project.

    EDIT: Try to add check if XXX.Moles assembly exists into Reference tag e.g.:

    <Reference Condition="Exists('..\molesassemblies\XXX.Moles.dll')" Include="XXX.Moles.dll">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\molesassemblies\XXX.Moles.dll</HintPath>
    </Reference>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason OpenCover is not covering tests using moles on Windows Server 2003
I have an issue running some moles tests within Visual Studio 2010. Within a
I'm using Test::Unit::TestCase to write some unit tests. Currently, I have a setup function
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
I've got some experience using haml (+sass) on rails projects. I recently started using
I'm practicing some XSL and using this XML document as a simple example: <?xml
I have a UITableView where some rows are indented using indentationLevel. Cells have the
Problem I am using jQuery UI dialog to show a dialog box with some
I'm using Lucene for a job search portal using .net. Am facing some performance
Ok i got some weird stuff here I just no clue anymore. First my

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.