asp.net查看项目外的引擎位置

时间:2015-01-19 12:56:11

标签: c# asp.net

是否可以将视图引擎设置为指向项目外部的路径?

默认路径现在为~/Views/{1}/{0}.cshtml,我想使用c:/my-folder/Views/{1}/{0}.cshtml

我想在我的开发机器上使用它,因此无法使用虚拟目录。

当我尝试将路径设置为C时:/我收到以下错误: 相对虚拟路径 c:/my-folder/Views/Home/index.cshtml' is not allowed here.

0 个答案:

没有答案