Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuget upgrade failed #95

Open
gregveres opened this issue May 23, 2017 · 1 comment
Open

Nuget upgrade failed #95

gregveres opened this issue May 23, 2017 · 1 comment

Comments

@gregveres
Copy link

gregveres commented May 23, 2017

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>
@gregveres
Copy link
Author

You can close the issue if you want. I got up and running again by deleting the file that was in the .build folder. I guess it isn't needed anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant