繁体   English   中英

如何使用 ASP.NET 核心 web 应用程序托管 web 页面?

[英]How can I host web pages with an ASP.NET Core web application - API project in Visual Studio?

I needed a REST server in Visual Studio so I choose the template ASP.NET Core web application and then I chose the "API" option, but I want to host web pages too.

这是我无法弄清楚的事情,我是否需要制作另一个 ASP.NET 核心项目但选择“Web 应用程序”,或者如何从我的初始项目托管 web 页面?

我尝试使用 html 页面在项目内创建一个文件夹,然后尝试访问它,但服务器找不到该资源。

所以问题又来了,我如何在该项目模板中托管本地 web 页面?

I end up dividing the project in two (and using java instead of C# and visual basic), one part is the web project (host the web pages) and the other one is the one with the Web Service, this was the best option for我在这一刻。

暂无
暂无

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

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