MSB4062 while compiling

Category: visual studio msbuild


Timothy Ryazanoff on Thu, 23 Mar 2017 16:49:33

Hello there,

I have a daunting error which says: ERROR MSB4062: The "VCMessage" task could not be loaded from the assembly Microsoft.Build.CppTasks.Common, Version=, Culture=neutral, PublicKeyToken=b03f5f711d50a3a. Could not load file or assembly 'Microsoft.Build.CppTasks.Common, Version=, Culture=neutral, PublicKeyToken=b03f5f711d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Any suggestions?




Leo Liu-MSFT on Fri, 24 Mar 2017 10:07:02

Hi Timothy Ryazanoff,

Welcome to MSDN forum.

What is your version of VS? What is your project type? What do you do to get this error? Could you please share us more information or detailed steps to reproduce the error? It is difficult to solve this issue based on a common mistake. More information will help us solve this problem soon. Thanks.

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact