我试着遵循下面的指南:
http://www.castleproject.org/others/nvelocity/usingit.html
你能告诉我我必须包括哪些dll才能让它工作:
VelocityEngine velocity = new VelocityEngine();
ExtendedProperties props = new ExtendedProperties();
velocity.Init(props);我包括了整个城堡项目,但仍然不起作用。
发布于 2009-06-07 15:00:45
您需要引用NVelocity.dll。这似乎不是主要城堡项目的一部分。
它的最后一个稳定版本是1.0.3 RC3 (根据this页面)。您可以从here的"1.0 release Candidate 3“部分获得整个版本。如果下载二进制文件,NVelocity.dll将被打包到一个名为external-dependencies.zip的压缩文件中。
发布于 2013-08-03 17:53:39
也许这可以帮助人们开始使用NVelocity:http://chrisseroka.wordpress.com/2013/08/01/generating-html-document-from-template-using-nvelocity/
https://stackoverflow.com/questions/961762
复制相似问题