SparkViewEngine 是否可以与 asp.net mvc Vs2010 一起使用

发布于 2024-09-19 20:59:59 字数 1500 浏览 3 评论 0 原文

我正在尝试使用新的 Spark 视图引擎。我已经完成了上述所有必要的配置 此处

http://dotnetslackers.com/articles/aspnet/Installing-the-Spark-View-Engine-into-ASP-NET-MVC-2-Preview-2.aspx

并出现以下错误运行时消息..我错过了什么?

AS了解Spark视图引擎使用system.web 2.0而vs2010 mvc项目使用system.web 4.0...我们需要做任何改变吗?

动态视图编译失败。错误

Spark.Compiler.CompilerException:动态视图编译失败。 (0,0): 错误 CS1668: 警告为错误: 在“LIB 环境变量”中指定的搜索路径“c:\open road\INGRES\LIB”无效 --“系统找不到指定的路径。 ' 定位“c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs”的源。校验和:MD5 {1 1c 29 59 6f 9a 26 37 1b 96 c0 fb 1d 1a 34 11}

文件“c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs”不存在。 在脚本文档中查找“c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs”... 在项目中查找“c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs”。 在项目中找不到该文件。 查看目录“C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\”... 查看目录 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'... 查看目录 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'... 查看目录“C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\”... 活动解决方案的调试源文件设置指示调试器不会要求用户查找文件:c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs。 调试器无法找到源文件“c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs”。

I am trying to use new spark view engine . i have done all necessery configuration as mentioned
here

http://dotnetslackers.com/articles/aspnet/Installing-the-Spark-View-Engine-into-ASP-NET-MVC-2-Preview-2.aspx

and Have below Erorr message on run time..what am i missing?

AS in understand Spark view engine uses system.web 2.0 and vs2010 mvc project uses system.web 4.0... do we need to make any changes?

Dynamic view compilation failed. error

Spark.Compiler.CompilerException: Dynamic view compilation failed.
(0,0): error CS1668: Warning as Error: Invalid search path 'c:\open road\INGRES\LIB' specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
ocating source for 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'. Checksum: MD5 {1 1c 29 59 6f 9a 26 37 1b 96 c0 fb 1d 1a 34 11}

The file 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs' does not exist.
Looking in script documents for 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'...
Looking in the projects for 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs.
The debugger could not locate the source file 'c:\Code\Spark\src\Spark.Web.Mvc\SparkViewFactory.cs'.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

场罚期间 2024-09-26 21:00:00

Spark 现在可以与 .Net 4.0 一起使用来进行动态视图编译,并且该解决方案也可以从 master 分支在 VS2010 中打开。您可以下载源代码并编译最新的二进制文件,也可以在 VS2010 中使用 NuGet 获取最新的二进制文件。

希望有帮助...

Spark now works with .Net 4.0 for dynamic view compilation and the solution also opens in VS2010 from the master branch. You can either download the source and compile the latest binaries, or you can get the latest binaries using NuGet in VS2010.

Hope that helps...

终难愈 2024-09-26 21:00:00

You might want to grab the solution provided here. Although I haven't tried it, it looks like someone got a solution working and shared it with the world.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文