Sitecore Nuget 配置
1.Sitecore 应用与介绍2.Sitecore 下载与安装
3.Sitecore Nuget 配置
4.Sitecore Lincense 的更新5.Sitecore 打包备份与恢复6.Sitecore Field 类型与 C# 类型映射表7.Sitecore DI8.Sitecore EXM 的使用9.在 Sitecore 里使用 Solr 搜索 SortOrder 关联的 Item10. Sitecore 里删除 Item 报错 Could not create SSL/TLS secure channel.11.Sitecore 优化,加快应用每次重新 loading 速度。12.Sitecore 扩展CM部署13.Sitecore FieldRenderer14.Sitecore MVC @Html.RenderSection() 的替代方案15.Sitecore Query String Parameters16.Sitecore Item CURD17.Sitecore ListManagaer Operation18.Sitecore 通过 AutomatedMessage 发送邮件19.Sitecore CD ShowConfig.aspx20.Sitecore DataSource Query21.Sitecore Form 的使用22.Sitecore ListManager Contact Lists vs Segment Lists23.Sitecore 通过 processor 来自定义类似 github 的 not found 页面配置 Sitecore Nuget 包的路径
配置文件路径地址:C:\Users<username>\AppData\Roaming\NuGet\NuGet.Config
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="sitecore" value="https://sitecore.myget.org/F/sc-packages/api/v3/index.json" /> </packageSources> </configuration>
注意:在 2023年11月之后 nuget 地址将迁移到 https://nuget.sitecore.com/resources/v3/index.json
| https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1002999
所以上面的xml 应该改为:
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="sitecore" value="https://nuget.sitecore.com/resources/v3/index.json" /> </packageSources> </configuration>
项目的引用的dll要与 sitecore 一致
例如 sitecore 10.2 版本引用的 Microsoft.Aspnet.MVC.dll 版本为 5.2.4,而最新的 .Net Framework 4.8 里的 MVC 的模板默认引用的是 5.2.7 或 5.2.9,需要降级处理;
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步