gluck / il-repack

Open-source alternative to ILMerge
Apache License 2.0
1.19k stars 217 forks source link

Build for .NET Framework fails due to SharpZipLib .NET Framework dependency #331

Closed idigra closed 11 months ago

idigra commented 11 months ago

Offending change: https://github.com/gluck/il-repack/pull/308

Repro:

git clone https://github.com/gluck/il-repack.git
git submodule update --init --recursive
gradlew.bat msbuild

Expected: build succeeds Actual:

> Task :nugetRestore
NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0). Package SharpZipLib 1.3.3 supports:
  - net45 (.NETFramework,Version=v4.5)
  - netstandard2.0 (.NETStandard,Version=v2.0)
  - netstandard2.1 (.NETStandard,Version=v2.1)
NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win. Package SharpZipLib 1.3.3 supports:
  - net45 (.NETFramework,Version=v4.5)
  - netstandard2.0 (.NETStandard,Version=v2.0)
  - netstandard2.1 (.NETStandard,Version=v2.1)
NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win-arm64. Package SharpZipLib 1.3.3 supports:
  - net45 (.NETFramework,Version=v4.5)
  - netstandard2.0 (.NETStandard,Version=v2.0)
  - netstandard2.1 (.NETStandard,Version=v2.1)
NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win-x64. Package SharpZipLib 1.3.3 supports:
  - net45 (.NETFramework,Version=v4.5)
  - netstandard2.0 (.NETStandard,Version=v2.0)
  - netstandard2.1 (.NETStandard,Version=v2.1)
NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win-x86. Package SharpZipLib 1.3.3 supports:
  - net45 (.NETFramework,Version=v4.5)
  - netstandard2.0 (.NETStandard,Version=v2.0)
  - netstandard2.1 (.NETStandard,Version=v2.1)
Errors in P:\il-repack\ILRepack.IntegrationTests\ILRepack.IntegrationTests.csproj
    NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0). Package SharpZipLib 1.3.3 supports:
      - net45 (.NETFramework,Version=v4.5)
      - netstandard2.0 (.NETStandard,Version=v2.0)
      - netstandard2.1 (.NETStandard,Version=v2.1)
    NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win. Package SharpZipLib 1.3.3 supports:
      - net45 (.NETFramework,Version=v4.5)
      - netstandard2.0 (.NETStandard,Version=v2.0)
      - netstandard2.1 (.NETStandard,Version=v2.1)
    NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win-arm64. Package SharpZipLib 1.3.3 supports:
      - net45 (.NETFramework,Version=v4.5)
      - netstandard2.0 (.NETStandard,Version=v2.0)
      - netstandard2.1 (.NETStandard,Version=v2.1)
    NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win-x64. Package SharpZipLib 1.3.3 supports:
      - net45 (.NETFramework,Version=v4.5)
      - netstandard2.0 (.NETStandard,Version=v2.0)
      - netstandard2.1 (.NETStandard,Version=v2.1)
    NU1202: Package SharpZipLib 1.3.3 is not compatible with net40 (.NETFramework,Version=v4.0) / win-x86. Package SharpZipLib 1.3.3 supports:
      - net45 (.NETFramework,Version=v4.5)
      - netstandard2.0 (.NETStandard,Version=v2.0)
      - netstandard2.1 (.NETStandard,Version=v2.1)
KirillOsenkov commented 11 months ago

This is now fixed in the latest master.