简体   繁体   English

如何将绝对 Uri 路径从 .net 转换为 .net 核心?

[英]How to convert the Absolute Uri path from .net to .net core?

I am converting my asp.net project to asp.net core.我正在将我的 asp.net 项目转换为 asp.net 核心。 It throws a few errors that i need your assistance to fix.它引发了一些错误,我需要您的帮助来修复。 enter image description here在此处输入图像描述

enter code here在此处输入代码

在此处输入图像描述

Try this:尝试这个:

HttpContext.Request.GetDisplayUrl()

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

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