Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The "Message" task was not found

Tags:

.net

msbuild

Suddenly when I opened by Visual Studio 2008 solution today and tried to rebuild all, I got the following error:

The "Message" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "D:\WINDOWS\Microsoft.NET\Framework\v3.5" directory

I don't understand anything of this. Can you please guide.

like image 654
Gautam Jain Avatar asked Mar 11 '11 14:03

Gautam Jain


2 Answers

I restarted my computer and the error disappeared :)

Updated:

Based on the below comments (Thanks to @Thomas & @Vikram), it seems that restarting Visual Studio also fixes the issue.

like image 124
Gautam Jain Avatar answered Oct 03 '22 05:10

Gautam Jain


I had the same problem in VS 2013 and fixed it by cleaning the solution.

like image 36
Hans Løken Avatar answered Oct 03 '22 05:10

Hans Løken