Can .Net Application be converted into a Portable App i.e. single .exe

前端 未结 5 515
太阳男子
太阳男子 2021-01-05 13:19

Can a .Net application be converted into a single .exe portable application?

i.e. no installer, it just runs?

I imagine all the dll\'s, resources etc need

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-05 13:56

    I'm not sure but it sounds like you want the .NET framework (or the parts needed for your app) to be included in the installer, so that it is 100% standalone, yes? I know that ClickOnce apps can download .NET if it is not already installed, but that doesn't help if you are deploying to machines with limited or no network connectivity. AS my understanding, you are allowed to redistribute the framework with your app:

    http://msdn.microsoft.com/en-us/library/xak0tsbd.aspx , but I have never done it myself.

    EDIT: You're application's executable does not actually need to be installed with an installer (it will run if you just double-click on it), but if you are including other files (such as redistributable of .NET) then you probably would need some kind of installer.

提交回复
热议问题