标签: c# asp.net
是否可以将视图引擎设置为指向项目外部的路径?
默认路径现在为~/Views/{1}/{0}.cshtml,我想使用c:/my-folder/Views/{1}/{0}.cshtml。
~/Views/{1}/{0}.cshtml
c:/my-folder/Views/{1}/{0}.cshtml
我想在我的开发机器上使用它,因此无法使用虚拟目录。
当我尝试将路径设置为C时:/我收到以下错误: 相对虚拟路径 c:/my-folder/Views/Home/index.cshtml' is not allowed here.
c:/my-folder/Views/Home/index.cshtml' is not allowed here.