Compile to a stand-alone executable (.exe) in Visual Studio

前端 未结 7 1786
囚心锁ツ
囚心锁ツ 2020-11-30 04:36

how can I make a stand-alone exe in Visual Studio. Its just a simple Console application that I think users would not like to install a tiny Console application. I compiled

7条回答
  •  天涯浪人
    2020-11-30 05:19

    I don't think it is possible to do what the questioner asks which is to avoid dll hell by merging all the project files into one .exe.

    The framework issue is a red herring. The problem that occurs is that when you have multiple projects depending on one library it is a PITA to keep the libraries in sync. Each time the library changes, all the .exes that depend on it and are not updated will die horribly.

    Telling people to learn C as one response did is arrogant and ignorant.

提交回复
热议问题