From aa08b2158cea783a1ac4f3e817788c493d79534c Mon Sep 17 00:00:00 2001 From: Noah Sherwin Date: Fri, 17 Jan 2025 02:54:07 -0800 Subject: [PATCH] docs(TODO): don't use static, pre-made nupkgs It kinda defeats the purpose of package validation in dry-runs. --- TODO.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index c25f985..1d18508 100644 --- a/TODO.md +++ b/TODO.md @@ -32,7 +32,8 @@ So, I have to jerry rig effectively equivalent functionality out of existing NuG Both are accomplished by the following: - grab the new version during Prepare -- copy our pre-made, lightweight v0.0.1-DUMMY dummy package. Overwrite its PackageID with the real ID. +- ~~copy our pre-made, lightweight v0.0.1-DUMMY dummy package. Overwrite its PackageID with the real ID.~~ +- Invoke `dotnet pack proj/Path -p:Version=0.0.1-DUMMY` - query the NuGet source (i.e. package registry/server) for the package ID and check the existing package versions for the "new version" we want to publish. - `dotnet nuget push ./publish/${PackageId}.0.0.1-DUMMY.nupkg -source NugetSourceName --api-key private_token --skip duplicate`. That last part tells the Source it's okay if the dummy package already exists. The only error we would get is if the token lacks permission.