我正在尝试使用新的 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'.
发布评论
评论(3)
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...
您可能想要获取此处提供的解决方案。虽然我还没有尝试过,但看起来有人找到了可行的解决方案并与世界分享。
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.
请尝试这些说明 - http://blogs.msdn.com/b/mikeormond/archive/2009/12/21/video-spark-view-engine-part-1.aspx
Try these instructions instead - http://blogs.msdn.com/b/mikeormond/archive/2009/12/21/video-spark-view-engine-part-1.aspx