Solved

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

Posted on 2011-03-01
2
2,313 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

21 Experts available now in Live!

Get 1:1 Help Now