Just like in the build command the main argument can be either a project file or a solution (sln) file.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
...and it would be good to explain the behaviour of publish
with a solution file
yes, especially with the -output parameter
Fixed by #17196
Most helpful comment
...and it would be good to explain the behaviour of
publish
with a solution file