错误 CS1061 'IApplicationBuilder' 不包含定义 'UseStaticFiles' 的内容,并且找不到接受类型为 'IApplicationBuilder' 的第一个参数的 'UseStaticFiles' 扩展方法(是否缺少使用指令或程序集引用?) MyWorld.DNX Core 5.0 C:\Projects\MyWorld\src\MyWorld\Startup.cs 21
Project.json
![ASP.NET5 静态文件问题](https://istack.dev59.com/aqEo9.webp)
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-beta8",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
},
"frameworks": {
"dnx451": {
"dependencies": {
"Microsoft.AspNet.StaticFiles": "1.0.0-beta8"
}
},
"dnxcore50": { }
},
"exclude": [
"wwwroot",
"node_modules"
],
"publishExclude": [
"**.user",
"**.vspscc"
]
}