The OP of the question Prevent dotnet core 3.0 from building EXE by default came back to the question a few months after asking it, and self-answered with what had worked from the comments received in the question, which seems appropriate given that the commenters didn't post an answer.
While the answer isn't of the best quality, the OP even appropriately referenced the users that helped give the answer. It doesn't even warrant a downvote in my opinion, but I think it's too much that it was deleted by a moderator. 10k link: https://stackoverflow.com/a/59704181/
Screenshot for users below 10k:
Am I missing something here?