errorMSB4062: The "CompressorTask" task could not be loaded from the assembly C:\inetpub\wwwroot\Build\Tools\..\Libraries\SharedAssemblies\Yahoo.Yui.Compressor.dll. 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.
Note: I copied these files over the old ones in the same directory, refreshed code, and verified my msbuild file still had the correct references. I've tried several variations of configurations, the most simple of which is below.
```
<UsingTask TaskName="CompressorTask" AssemblyFile="..\Libraries\SharedAssemblies\YUI\Yahoo.Yui.Compressor.Build.MsBuild.dll" />
<Target Name="AfterBuild">
<ItemGroup>
<HomesCss Include="$(ReleasePath)\homes\styles\CalendarPopupStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\CalendarStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\ComboBoxStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\GridStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\MainMenuStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\MainStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\NavigationStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\TabStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\WebPartStyles.css" />
<HomesCss Include="$(ReleasePath)\homes\styles\FullCalendar.css" />
</ItemGroup>
<CompressorTask SourceFiles="@(HomesCss)"
OutputFile="$(ReleasePath)\homes\styles\Site.css" />
<ItemGroup>
<MobileiPhoneCss Include="$(ReleasePath)\mobile\styles\iPhone2.css" />
</ItemGroup>
<CompressorTask SourceFiles="@(MobileiPhoneCss)"
OutputFile="$(ReleasePath)\mobile\styles\iPhone2.css"/>
<ItemGroup>
<PartnerDesktopCss Include="$(ReleasePath)\partner\styles\Desktop.css" />
</ItemGroup>
<CompressorTask SourceFiles="@(PartnerDesktopCss)"
OutputFile="$(ReleasePath)\partner\styles\Desktop.css" />
```
I'm guessing that something is changed with the newer file and I don't have my configurations set correctly.
Any help would be greatly appreciated.
Thanks,
Comments: ** Comment from web user: zambodi **
@purekrome:
1. Path location running from: From: C:\inetpub\wwwroot\Build\Tools\
2. Command: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe AppsDeploy.msbuild /p:Configuration=Release
3. C:\inetpub\wwwroot\Build\Libraries\SharedAssemblies\YUI\Yahoo.Yui.Compressor.Build.MsBuild.dll
@freeranger:
I've uploaded a PNG of the instructions to which you pointed. It looks like the "name" of the task is "CompressorTask". It looks to me that I have it configured exactly like the documentation. Can you point out what I'm missing in comparison to the uploaded image.. I'm missing it.
Thanks,