mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Local OpenSSL defaults can reject legacy SHA-1 signatures during dotnet operations. Set the required compatibility flag inside the repository scripts so restore, build, publish, clean, and formatting paths do not depend on each caller's shell environment. Assisted-by: OpenCode:openai/gpt-5.5:OpenCode
8 lines
383 B
PowerShell
8 lines
383 B
PowerShell
#!/usr/bin/env pwsh
|
|
# Re-resolve every dependency and rewrite the packages.lock.json files.
|
|
# Run this after changing a PackageVersion in Directory.Packages.props (or adding a package),
|
|
# then commit the updated lock files.
|
|
$ErrorActionPreference = 'Stop'
|
|
$env:OPENSSL_ENABLE_SHA1_SIGNATURES = '1'
|
|
dotnet restore ILSpy.sln --force-evaluate -p:RestoreEnablePackagePruning=false @args
|