【发布时间】:2009-09-09 02:12:04
【问题描述】:
我正在关注教程here。
我创建了一个新的 Web 应用程序。然后我添加了两个类库项目,Common 和 Domain。公共项目包含 SubSonic 库,而 Domain 项目包含 SubSonic .tt 和 .ttinclude 文件。
修改 Settings.ttinclude 中的设置后,我尝试在 tt 文件上“运行自定义工具”,但出现此错误:
Running transformation: System.ArgumentNullException: Value cannot be null.
Parameter name: The project does not contain App.config or Web.config file.
我可以提供堆栈跟踪的其余部分,但它似乎找不到作为连接字符串的我的 Web.config。将 app.config 添加到 Domain 项目只会导致生成步骤抱怨找不到预期的部分。
有没有办法将这些文件放在单独的程序集中,但仍使用 web.config 进行设置?
【问题讨论】: