EcmsScript.NET.modified -> The system cannot find the file specified

Jan 19, 2012 at 11:23 PM

Hi Guys,

I'm trying to get the MSTask working. But I'm running into problems. Like so:

Error    2    Could not load file or assembly 'EcmaScript.NET.modified, Version=0.1.1.0, Culture=neutral, PublicKeyToken=7d53ba4f537753a5' or one of its dependencies. The system cannot find the file specified.    C:\_tests\Website.Static.csproj    345    5    Website.Static

I've edited my csprog to the following:


  <Target Name="AfterBuild">
    <CallTarget Targets="Compress" Condition=" '$(Configuration)' == 'Release' " />
  </Target>
  <Target Name="Compress">
    <ItemGroup>
      <!-- Single files, listed in order of dependency.  Use * for wildcards -->
      <CssFiles Include="$(ProjectDir)\\**\\*.css" Exclude="$(ProjectDir)\\**\\*.min.css" />
      <JavaScriptFiles Include="$(ProjectDir)\\**\\*.js" Exclude="$(ProjectDir)\\**\\*.min.js" />
    </ItemGroup>
    <CompressorTask
       CssFiles="@(CssFiles)"
       DeleteCssFiles="false"
       CssOutputFile="$(ProjectDir)\\v1\\xx.min.css"
       CssCompressionType="YuiStockCompression"
       JavaScriptFiles="@(JavaScriptFiles)"
       ObfuscateJavaScript="True"
       PreserveAllSemicolons="True"
       DisableOptimizations="False"
       EncodingType="Default"
       DeleteJavaScriptFiles="false"
       LineBreakPosition="-1"
       JavaScriptOutputFile="$(ProjectDir)\\v1\\xx.min.js"
       LoggingType="ALittleBit"
       ThreadCulture="en-us"
       IsEvalIgnored="false" />
  </Target>

Coordinator
Jan 27, 2012 at 8:05 AM

Which version of YUICompressor are you using?

If you are using the latest version, you need all three assemblies in the same place:

EcmaScript.NET.modified.dll

Yahoo.Yui.Compressor.dll

Yahoo.Yui.Compressor.MsBuildTask.dll

Coordinator
Jan 27, 2012 at 11:31 AM

@chriskolenko also, how are you getting the .dll? via NuGet? manually downloading it? What files are available after you grabbed the .dll? all 3 files, as freeranger has stated, above?