Skip to content

Instantly share code, notes, and snippets.

@Ilchert
Created July 20, 2024 11:10
Show Gist options
  • Save Ilchert/01a8352188909fbdea79dbb3fa3661f2 to your computer and use it in GitHub Desktop.
Save Ilchert/01a8352188909fbdea79dbb3fa3661f2 to your computer and use it in GitHub Desktop.
1. Create c:\1.restore.json
2. msbuild c:\1.csproj -target:GenerateRestoreGraphFile -property:RestoreGraphOutputPath="c:\1.restore.json" -property:RestoreRecursive=false -property:RestoreDotnetCliToolReferences=false
3. dotnet nuget package add --package Litedb c:\\1.csproj --dg-file c:\1.restore.json
@Ilchert
Copy link
Author

Ilchert commented Jul 20, 2024

dotnet NuGet.CommandLine.XPlat.dll package add --package Litedb c:\1.csproj --dg-file c:\1.restore.json

@Ilchert
Copy link
Author

Ilchert commented Jul 20, 2024

dotnet "C:\Program Files\dotnet\sdk\8.0.300-preview.24203.14\NuGet.CommandLine.XPlat.dll" package add --package Litedb --project SqlMarshal\SqlMarshal.csproj --dg-file my.restore.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment