是否可以将 ASP.NET 应用程序部署为桌面应用程序(带有服务器组件)

发布于 2024-09-08 09:39:14 字数 335 浏览 1 评论 0原文

问题:我创建了一个 ASP.NET Web 应用程序。

现在它最初是为了部署在网络服务器上。
这是有效的,所以,到目前为止一切顺利。

我现在的问题是:是否也可以将其部署为桌面应用程序?

也就是说,安装程序安装某种服务器以及 Web 应用程序,将服务器配置为在本地主机 URL 上运行此应用程序,然后在开始菜单/桌面中创建一个链接,在其中打开该 url(网站、应用程序)在网络浏览器中的本地主机上?

我认为应该是可能的,尽管服务器不会是IIS,因为这是一个Windows组件,不能单独安装。

那里已经有类似的东西了吗? 最不寻常的是,它仅在您单击快捷方式时启动服务器。

Question: I created an ASP.NET web application.

Now it originally was meant for deployment on a webserver.
That is working, so, so far so good.

My question now is: Is it possible to deploy it as a desktop-application, too?

That is to say the installer installs some kind of server, plus the web application, configures the server to run this application on a localhost URL, and then creates a link in the start menu/desktop, where it opens that url (website, the application) on localhost in a web browser?

I think it should be possible, though the server wouldn't be IIS, because this is a windows component which can't be separately installed.

Is there anything like this already out there ?
The nonplusultra would be that it only starts the server when you click on the shortcut.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

人事已非 2024-09-15 09:39:14

我不确定,但你可以使用 IIS Express,当它发布时。查看 ScottGu 的帖子介绍 IIS Express< /a>.

I'm not sure, but you could use IIS express, when it will be released. Take a look to ScottGu's post Introducing IIS Express.

画骨成沙 2024-09-15 09:39:14

2018+ 更新:

You can now use .NET Core self-contained deployment.
Add a tray-icon and open a website on localhost with the default-browser.


对于 2010 年的 .NET 非核心:
我差点就奔向卡西尼号了。
但与此同时,我发现了更好的东西:

http://code.google.com/p/aspnetserve /

我的错误是搜索“asp.net 部署服务器组件”而不是“asp.net 嵌入式网络服务器”。

一个非常酷的项目。
似乎有效,至少可以满足我的需要。

编辑:
更好的选择是 xsp-2.10.2 包中的 xsp4,由 mono-project 提供。
http://download.mono-project.com/sources/xsp/ < br>
可在 Linux 和 Windows 以及 Mac 上运行,具有 mono 和 .NET 框架,并且无需安装 GAC(事实上,无需任何安装)。

最新来源在这里:
https://github.com/mono/xsp/tree/master/src

2018+ Update:

You can now use .NET Core self-contained deployment.
Add a tray-icon and open a website on localhost with the default-browser.


For .NET non-Core in 2010:
I almost went for Cassini.
But in the meantime, I found something better:

http://code.google.com/p/aspnetserve/

My mistake was searching for 'asp.net deployment server component' instead of 'asp.net embedded webserver'.

A really cool project.
Seems to work, at least for my needs.

Edit:
A much better choice is xsp4 from package xsp-2.10.2, courtesy of the mono-project.
http://download.mono-project.com/sources/xsp/
Works on both Linux and Windows, as well as Mac, with both mono and .NET framework, and that without GAC installation (in fact, without any installation).

The latest source is here:
https://github.com/mono/xsp/tree/master/src

一腔孤↑勇 2024-09-15 09:39:14

您可以使用易于安装的 ASP.Net Web 服务器,例如 UltiDev Cassini

You can use an easily installable ASP.Net webserver such as UltiDev Cassini.

金橙橙 2024-09-15 09:39:14

我认为您正在寻找类似 Adob​​e Air 的东西: http://en.wikipedia.org/wiki /Adobe_Integrated_Runtime

但是,您希望能够运行 ASP.NET,而 Adob​​e Air 却无法运行。我的建议是使用 Silverlight

I think what you are looking for is something like Adobe Air: http://en.wikipedia.org/wiki/Adobe_Integrated_Runtime

However you want to be able to run ASP.NET, which Adobe Air does not. My suggestion is to use Silverlight

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文