title: MSBuild task could not be loaded error
body: <p>I have this situation, I am using Yahoo Yui Compressor and my MSBuild file contains this line</p>
  
  <pre><code>&lt;UsingTask TaskName="CompressorTask" AssemblyFile="..\Lib\Minification\Yahoo.Yui.Compressor.dll" /&gt;
  </code></pre>
  
  <p>This path that I have specified is relative to where the build script (in which this line exists) is.  </p>
  
  <p>I have these files in the Minification folder</p>
  
  <p>EcmaScript.NET.modified.dll
  New BSD License.txt
  Yahoo.Yui.Compressor.dll
  Yahoo.Yui.Compressor.MsBuildTask.dll</p>
  
  <p>I can't figure out if the following error on building is due to</p>
  
  <ol>
  <li>Wrong path being specified</li>
  <li>Missing dlls or other files</li>
  <li>Some other reason</li>
  </ol>
  
  <p>The error is</p>
  
  <blockquote>
    <p>C:\Builds\Mcfc\UI\Latest\MCFC\scripts\main.xml(270,5): error MSB4062:
    The "CompressorTask" task could not be loaded from the assembly
    C:\Builds\Mcfc\UI\Latest\MCFC\scripts..\Lib\Minification\Yahoo.Yui.Compressor.dll.
    Confirm that the  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. Done
    Building Project "C:\Builds\Mcfc\UI\Latest\MCFC\scripts\main.xml"
    (Deploy target(s)) -- FAILED.</p>
  </blockquote>
  
  <p>Any ideas?</p>