使用 Visual Studio 文件以编程方式启动 ASP.NET 集成 Web 服务器

发布于 2024-08-08 15:46:03 字数 268 浏览 5 评论 0原文

我不确定要谷歌搜索什么关键字,所以我要问一下。

我有一个 asp.net 网站,其中托管数据库、wcf dll 和 silverlight 应用程序。我想创建一个 .exe 文件来自动运行集成的网络服务器,应用程序根目录是我的 asp.net 文件所在的项目文件夹。

基本上我想要做的就是在本地主机中单击一键运行项目,而无需启动 Visual Studio。启动网络服务器、浏览器并重定向到该本地主机 URL。

我将其分发到的计算机可能没有安装 Visual Studio。

I'm not sure what keywords to google for, so i'm gonna ask SO.

I have an asp.net website which host a database, wcf dll and silverlight application. I would like to create an .exe file to automatically run an integrated webserver with the application root being the project folder of where my asp.net files are.

Basically what I want to do is run the project in localhost with 1 click without starting up visual studio. Starting up the webserver, browser and redirecting to that localhost url.

The computer I will distribute this to may not have visual studio installed.

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

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

发布评论

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

评论(3

亢潮 2024-08-15 15:46:03

请查看以下文章,其中我使用 C# 来启动 webdev 服务器。

http://www.highoncoding.com/Articles/367_Unit_Testing_ASP_NET_Pages_Using_WatiN.aspx

Check out the following article in which I have used C# to start the webdev server.

http://www.highoncoding.com/Articles/367_Unit_Testing_ASP_NET_Pages_Using_WatiN.aspx

停顿的约定 2024-08-15 15:46:03

只是想让您知道:Asp.NET 4.0 中有一个新功能; 自动启动

ASP.NET 4 和 IIS 7.5 的新“自动启动”功能提供了一种定义明确的方法,允许您执行昂贵的应用程序启动和预缓存逻辑,这些逻辑可以在任何最终用户点击您的应用程序。这使您能够从一开始就让您的应用程序“预热”并做好准备,并提供一致的高性能体验。

更多: 自动启动 ASP.NET 应用程序(VS 2010 和 .NET 4.0 系列)

Just want to let you know : There is a new feature in Asp.NET 4.0 ; Auto-Start :

The new "auto start" feature of ASP.NET 4 and IIS 7.5 provides a well-defined approach that allows you to perform expensive application startup and pre-cache logic that can run before any end-users hit your application. This enables you to have your application "warmed up" and ready from the very beginning, and deliver a consistent high performance experience.

More: Auto-Start ASP.NET Applications (VS 2010 and .NET 4.0 Series)

没有心的人 2024-08-15 15:46:03

我决定使用 此处 找到的 Cassina。 WebDev.WebServer.exe 是在此基础上构建的。

I decided to go with Cassina found here. WebDev.WebServer.exe was built on that.

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