如何调用“Sitecore Rocks”代码生成?
安装 Sitecore Rocks 扩展后,我创建了一个“Sitecore >”代码生成>模板类文件添加到项目中。我将 Sitecore 中的模板添加到 .scx 文件中,并尝试通过选择“运行自定义工具”来运行该文件,但它似乎没有执行任何操作。为了运行代码生成文件并让它为我的 Sitecore 模板生成类,我需要做一些具体的事情吗?
谢谢!
After installing Sitecore Rocks extension, I created a 'Sitecore > Code Generation > Template Classes' file to the project. I added my templates from Sitecore to the .scx file and tried running the file by selecting 'Run Custom Tool', but it doesn't seem to do anything. Is there something specific I need to do in order to run the code generation file and have it generate the classes for my Sitecore templates?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我对此的发现,
一旦您设置了 Sitecore 和 Sitecore Rocks,您可以在创建的文件名下检查生成的代码文件,如 CodeGenerateFile.Designer.cs(假设新文件名为“CodeGenerateFile”)
该文件应为'强类型化项目'
基于这个问题我在这里详细写了- 使用 Sitecore 生成代码岩石
Here is my finding on this,
Once you have setup Sitecore and Sitecore Rocks you can check the generated code file under the created file name as CodeGeneratedFile.Designer.cs (assuming the new file is named as 'CodeGeneratedFile')
The file should be type of 'Strongly Typed Items'
Based on this question I have written here in detail - Code Generation using Sitecore Rocks