链接到wwwroot中的HTML站点 [英] Link to a HTML site inside wwwroot

查看:119
本文介绍了链接到wwwroot中的HTML站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET项目,其内容也包含在wwwroot中。我需要链接到那里的wwwroot / docs / index.html文件。



如果我正在运行 https:// localhost:5001 [ ^ ]我来到Home / Index.cshtml页面。



如果我正在运行https://localhost:5001/wwwroot/docs/index.html [ ^ ]看不到任何内容。



如何链接?



我尝试了什么:



https://localhost:5001/wwwroot/docs/index.html [ ^ ]

I have a ASP.NET project which also have content inside wwwroot. I need to link to a wwwroot/docs/index.html file there.

If i'm running https://localhost:5001[^] i'm coming to the Home/Index.cshtml page.

If i'm running https://localhost:5001/wwwroot/docs/index.html[^] nothing is visible.

How can i link?

What I have tried:

https://localhost:5001/wwwroot/docs/index.html[^]

推荐答案

对于ASP.NET Core,只需删除 wwwroot part:

https:// localhost:5001 / docs / index.html
For ASP.NET Core, just remove the wwwroot part:
https://localhost:5001/docs/index.html


非常感谢。它有所帮助: - )
Thank you very much. It helped :-)


这篇关于链接到wwwroot中的HTML站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆