简体   繁体   English

ASP.NET 核心后端和 web 服务器

[英]ASP.NET Core backend and web server

I am currently writing a backend for my web project.我目前正在为我的 web 项目编写后端。 I wrote a REST service and used ASP.NET Core to host the files.我写了一个 REST 服务并使用 ASP.NET Core 来托管文件。 When using the debugger inside of Visual Studio, I am getting a console and shortly after debug/info messages from the server (it says Microsoft.Hosting.Lifetime ).在 Visual Studio 中使用调试器时,我得到一个控制台,并且在来自服务器的调试/信息消息后不久(它说Microsoft.Hosting.Lifetime )。

The problem is that I want to execute the program outside of the IDE, but when I am starting it standalone, it just shows an empty console and nothing happens.问题是我想在 IDE 之外执行该程序,但是当我独立启动它时,它只显示一个空控制台,没有任何反应。

What must I do to host the REST service and web server outside of the IDE?我必须做什么才能在 IDE 之外托管 REST 服务和 web 服务器?

try this way Change Run To IIS尝试这种方式将运行更改为 IIS

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM