Skip to content

MSBuild target Pack fails - System.IO.Compression 4.1.0 not found #1384

@jp2masa

Description

@jp2masa

I'm using .NET Core 2.0 Preview 2 (2.0.0-preview2-006497) and when running MSBuild (from the Visual Studio installation) with targets Restore and Pack the operation fails with the following error message:

C:\Program Files\dotnet\sdk\2.0.0-preview2-006497\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(141,5): error : Could not load file or assembly 'System.IO.Compression, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

The project is targeting netstandard1.5 and adding global.json with sdk version "1.0.4" works fine.

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