【发布时间】:2016-03-11 22:09:30
【问题描述】:
我正在尝试将我的旧 mvc5 项目移动到 asp net core。 旧代码是:
public string ContentType
{
get
{
if (!string.IsNullOrEmpty(FileName))
return MimeMapping.GetMimeMapping(FileName);
return null;
}
}
错误是
当前上下文中不存在名称“MimeMapping”
【问题讨论】:
标签: c# asp.net-core-mvc mime-types system.web