Microsoft.Build.Framework.ITask is not implement in 1.6.0.2

Nov 13, 2011 at 9:20 PM

I have downloaded v 1.6.0.2 via nuget. And I get the error message

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.

Coordinator
Jan 27, 2012 at 8:17 AM

See this thread for a workaround: http://yuicompressor.codeplex.com/discussions/65002

It will be fixed in the next release

Coordinator
Jan 30, 2012 at 8:37 AM

Fixed in 1.7.0.0

Coordinator
Jan 30, 2012 at 10:31 AM

The fix for this was that the version of the assembly listed in your .xml file should be referencing the YUICompressor 'MSBuild' dll.

 

<UsingTask
        TaskName="CompressorTask"
        AssemblyFile="...........Yahoo.Yui.Compressor.MSBuild.dll" /> 

(or whatever that dll is named, as).