Thank you for reporting it in Microsoft Q&A.
I created a C# console project to test, the ‘Publish’ button is available.
You can try to re-install C# workloads, repair and update Visual Studio.
You can also run devenv /safemode
command to start Visual Studio without any extensions, you can refer to this document.
Sincerely,
Peng
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.