@@ -270,6 +270,10 @@ termux_step_make_install() {
270270 fi
271271
272272 pushd " ${TERMUX_PREFIX} "
273+ # https://github.com/dotnet/sdk/pull/50354
274+ # NETStandard.Library.Ref is no longer shipped in .NET 10 SDK
275+ rm -fr lib/dotnet/packs/NETStandard.Library.Ref
276+
273277 # remove unused targeting packs pdb files
274278 find \
275279 lib/dotnet/packs/Microsoft.AspNetCore.App.Ref \
@@ -350,28 +354,6 @@ termux_step_make_install() {
350354 \( -type f -o -type l \) | sort \
351355 > " ${TERMUX_PKG_TMPDIR} " /dotnet-templates.txt
352356
353- if [[ ! -d lib/dotnet/packs/NETStandard.Library.Ref ]]; then
354- echo " WARNING: NETStandard.Library.Ref not found in SDK tarball, extracting from nupkg"
355- local _nupkg
356- _nupkg=" $( find " ${TERMUX_PKG_BUILDDIR} /prereqs/packages/reference" \
357- -iname ' netstandard.library.ref.2.1.0.nupkg' -print -quit 2> /dev/null) "
358- if [[ -z " ${_nupkg} " ]]; then
359- _nupkg=" $( find " ${TERMUX_PKG_BUILDDIR} " -maxdepth 5 \
360- -iname ' netstandard.library.ref.2.1.0.nupkg' -print -quit 2> /dev/null) "
361- fi
362- if [[ -n " ${_nupkg} " ]]; then
363- mkdir -p lib/dotnet/packs/NETStandard.Library.Ref/2.1.0
364- unzip -qo " ${_nupkg} " -d lib/dotnet/packs/NETStandard.Library.Ref/2.1.0
365- rm -rf lib/dotnet/packs/NETStandard.Library.Ref/2.1.0/{_rels,package,' [Content_Types].xml' } \
366- lib/dotnet/packs/NETStandard.Library.Ref/2.1.0/* .nuspec
367- else
368- termux_error_exit " NETStandard.Library.Ref.2.1.0.nupkg not found"
369- fi
370- fi
371- find \
372- lib/dotnet/packs/NETStandard.Library.Ref \
373- \( -type f -o -type l \) | sort \
374- > " ${TERMUX_PKG_TMPDIR} " /netstandard-targeting-pack-2.1.txt
375357 popd
376358
377359 local txt
0 commit comments