did you open the project by double clicking the .sln file? if not you wont get the publish option.
i was. i did fix it though. i was literally just being stupid, and i didnt install the .net core properly