I've tested if slngen.exe could be run portably by:
- Downloading the raw
.nupkg file.
- Renaming it from
(...).nupkg to (...).zip.
- Extracting the
.zip.
- Running any of the extracted
slngen.exe files inside with Windows Terminal.
The answer turned out to be yes.
As such, I propose adding the same .nupkg file that is at https://www.nuget.org/packages/Microsoft.VisualStudio.SlnGen.Tool/12.0.32 to https://github.com/microsoft/slngen/releases, but with a .zip file extension (No other changes needed).
Alternately (or additionally), the .nupkg file could also be added to GitHub Releases as-is with no changes at all, as tools like Winget can be forced to treat .nupkg files as if they were .zip-s all along.
Possibly related?: https://github.com/microsoft/winget-pkgs/pull/368584
I've tested if
slngen.execould be run portably by:.nupkgfile.(...).nupkgto(...).zip..zip.slngen.exefiles inside with Windows Terminal.The answer turned out to be yes.
As such, I propose adding the same
.nupkgfile that is at https://www.nuget.org/packages/Microsoft.VisualStudio.SlnGen.Tool/12.0.32 to https://github.com/microsoft/slngen/releases, but with a.zipfile extension (No other changes needed).Alternately (or additionally), the .nupkg file could also be added to GitHub Releases as-is with no changes at all, as tools like Winget can be forced to treat .nupkg files as if they were .zip-s all along.
Possibly related?:
https://github.com/microsoft/winget-pkgs/pull/368584