Solved

NO tests were run because no tests are loaded or the selected tests are disabled

Posted on 2011-03-01
2
2,303 Views
Last Modified: 2013-12-17
Hi,
When I compile my UnitTest (C#) project I am getting below error.

The "BuildShadowTask" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.TestTools.BuildShadowReferences.BuildShadowTask.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)      UnitTest


And also, when I run it , it says - NO tests were run because no tests are loaded or the selected tests are disabled

Please help me. how can I run my UnitTest. This is one of the projects in my application.
0
Comment
Question by:GouthamAnand
2 Comments
 
LVL 6

Accepted Solution

by:
PJBX earned 500 total points
ID: 35011620
The accessor file might be causing this issue. If the file exists, delete or remove it from the project folder:

http://blog.hinshelwood.com/archive/2008/07/03/tfs-error-msb4018-the-quotbuildshadowtaskquot-task-failed-unexpectedly.aspx
0
 

Author Closing Comment

by:GouthamAnand
ID: 35084177
Thanks a lot.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now