Skip to content

Nuget upgrade failed #95

@gregveres

Description

@gregveres

HI Guys

I just upgraded from 3.0 to 3.1 just now using Nuget. Now the compressor wont run in the IDE.

I get this error:

The "RequireCompressorTask" task could not be loaded from the assembly C:\Users\gregv\Source\Repos\SquashSpider\SquashSpider\SquashSpider.build...\packages\RequireJsNet.Compressor.3.1.0\tools\RequireJsNet.Compressor.dll. Could not load file or assembly 'file:///C:\Users\gregv\Source\Repos\SquashSpider\SquashSpider\SquashSpider\packages\RequireJsNet.Compressor.3.1.0\tools\RequireJsNet.Compressor.dll' or one of its dependencies. The system cannot find the file specified. 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.

I have a .build directory and I originally set it up using the instructions on the web site when it was 2.2. The instructions are still there. I don't know if they are still accurate or not. The instructions refer explicitly to version 2.2, which isn't installed. I changed the path to the new file but that's when I get this error.

Any suggestions?

The Compressor.targets file in the .build directory looks like this:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <UsingTask TaskName="RequireCompressorTask" AssemblyFile="...\packages\RequireJsNet.Compressor.3.1.0\tools\RequireJsNet.Compressor.dll" />
  <ItemGroup>
    <Configs Include="$(_PackageTempDir)\RequireJS.json" />
    <Content Include="RequireJS.json">
      <Visible>false</Visible>
    </Content>
  </ItemGroup>
  <Target Name="RequireJsNetCompressor" AfterTargets="CopyAllFilesToSingleFolderForMsdeploy">
    <RequireCompressorTask
      LoggingType="Debug"
      RequireConfigs="@(Configs)"
      AutoCompressor="true"
      EncodingType="UTF8"
      ProjectPath="$(_PackageTempDir)"
      PackagePath="$(_PackageTempDir)\Scripts\" />
  </Target>
</Project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions