Hello @Yarkın Çete,
Welcome to Microsoft Q&A forum.
Not all the projects support to be published currently. Normally, if you don’t find the Publish option that means this type of project which you are using doesn’t support to be published.
What type of project are you using? If you try another project, for example creating a Windows Forms project, will you see the Publish option?
Similar thread: Visual Studio 2022 Publish Button is Nowhere to Be Found.
Update1:
Document for you to refer to: Publish overview.
For ASP.NET, .NET Core, and Python apps, you can use the Publish tool to deploy your applications.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.