c# - CaSTLe Nvelocity - 入门

标签 c# nvelocity

我正在尝试遵循本指南:

http://www.castleproject.org/others/nvelocity/usingit.html

你能告诉我我必须包含哪些 dll 才能让他工作吗:

VelocityEngine velocity = new VelocityEngine();

ExtendedProperties props = new ExtendedProperties();
velocity.Init(props);

我包括了整个城堡项目,但仍然没有用。

最佳答案

您需要引用 NVelocity.dll。这似乎不是主要 CaSTLe 项目的一部分。

最后一个稳定版本是 1.0.3 RC3(根据 this 页面)。您可以从 here 获得整个版本,在“1.0 Release Candidate 3”部分下。如果您下载二进制文件,NVelocity.dll 会打包在一个名为 external-dependencies.zip 的 zip 文件中。

关于c# - CaSTLe Nvelocity - 入门,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/961762/

相关文章:

c# - 选择字符串中的上一个和下一个单词

c# - 母版页中的 ASP.NET MVC2 登录表单

css - 将 Css 添加到 NVelocity FormHelper

asp.net - NVelocity ASP.NET 示例

c# - 如果模板中的最后一个字符是 $,NVelocity 合并失败

c# - 将 NVelocity 与 Sitecore FieldRenderer 结合使用

c# - 将 DateTime 格式化为字符串

c# - 在 C# 中为函数名称创建别名

c# - Net Core 3.0中并发使用GRPC Channel

html - 忽略格式化 Visual Studio 2010 中的某些部分