how do i compile the game i made to exe in windows

I want to compile my minigame but I don’t know how, tnx for the helpers

Can you give more information? Do you have Visual Studio open? If so, you can press F5; or go to the Debug menu and click Start Debugging; or click the green triangle near the top-center of your window to build and run. If you’ve made no changes to the code, a blue-colored window will appear.

The exe ends up in a folder within the bin folder in the project somewhere when you compile with Visual Studio but you have to include the dependency dlls that sit alongside it.