29 lines
810 B
Bash
29 lines
810 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
PACKAGES_DIR="$ROOT/.nuget/packages"
|
|
TMP_DIR="$ROOT/tmp/sbomservice-feed"
|
|
PROJECT="$TMP_DIR/probe.csproj"
|
|
|
|
mkdir -p "$TMP_DIR" "$PACKAGES_DIR"
|
|
|
|
cat > "$PROJECT" <<'CS'
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.14.0" />
|
|
<PackageReference Include="Pkcs11Interop" Version="4.1.0" />
|
|
</ItemGroup>
|
|
</Project>
|
|
CS
|
|
|
|
dotnet restore "$PROJECT" \
|
|
--packages "$PACKAGES_DIR" \
|
|
--ignore-failed-sources \
|
|
/p:RestoreUseStaticGraphEvaluation=true \
|
|
/p:RestorePackagesWithLockFile=false
|
|
|
|
find "$PACKAGES_DIR" -name '*.nupkg' -maxdepth 5 -type f -printf '%P\n' | sort
|