XC 10 - Tip #5: When the docs fails -NDepend
Visual NDepend

XC 10 - Tip #5: When the docs fails -NDepend

With a large software product like Sitecore with a huge code-base, it is difficult to get a good overview of how everything is connected together. Enter NDepend. NDepend is normally used to investigate code quality, but it is the best tool to get insights using the Dependency Graph explorer!

NDepend comes both with Visual Studio integration and with a stand-alone visual interface. I personally use the stand-alone interface (VisualNDepend.exe) because I'm not interested (with regard to getting insights) to analyze my own code.

NDepend allows you to create multiple projects, and in a project, you can select the assemblies to analyze.

I'm working on a Sitecore Commerce project that consists of two parts: The Commerce Engine solution and the Storefront solution. So what I did was create two NDepend projects:

  • CommerceEngine - with the assemblies of my Sitecore.Commerce.Engine main project in the folder Sitecore.Commerce.Engine\bin\Debug\netcoreapp3.1.
  • Storefront - with the assemblies of the XP website in the folder c:\inetpub\wwwroot\<XC10storefrontSite>\bin.

After the initial analysis of the assemblies, NDepend is really fast in showing code relationships. For example: where is the field ContactId used:

No alt text provided for this image

NDepend is very very powerful, and especially the Dependency Graph functionality is great for exploring a large codebase like Sitecore. See the video below for all the details:

I would like to thank Patrick Smacchia, developer of NDepend, for providing me a license of NDepend. You can download a 14 day trial from the NDepend website.

要查看或添加评论,请登录

Serge van den Oever的更多文章

  • SUGCON 2024 - my three cents...

    SUGCON 2024 - my three cents...

    Jason St-Cyr from Sitecore, although unable to attend the SUGCON conference in Dublin in person, provided insightful…

    2 条评论
  • Sitecore User Group Netherlands meeting @ Macaw

    Sitecore User Group Netherlands meeting @ Macaw

    Tuesday, September 27 the Dutch Sitecore User Group (SUGNL) came together at the Dutch headquarters of Macaw in the…

    1 条评论
  • What do we know about XM Cloud?

    What do we know about XM Cloud?

    As Sitecore MVPs, we had different sessions with Sitecore the last few months to keep us up to date on what is…

  • Sitecore demo portal ain't no XM Cloud

    Sitecore demo portal ain't no XM Cloud

    After my stupid blunder of mixing up Sitecore demo portal and XM Cloud I had to rewrite some blog posts[1][2], and do…

  • Azure Fluid Relay and Fluid Framework

    Azure Fluid Relay and Fluid Framework

    Microsoft made a great managed cloud service available on Azure called Azure Fluid Relay that enables Fluid Framework…

  • DynaMail - send data-driven, multi-language emails - replace Sitecore EXM

    DynaMail - send data-driven, multi-language emails - replace Sitecore EXM

    For a Sitecore Experience Commerce project we needed to send out emails on placed orders, but could not use EXM due to…

  • Boxever - my first baby steps

    Boxever - my first baby steps

    After doing the Boxever Advanced Certification I was lucky enough to get access to a Boxever sandbox. I will post my…

    1 条评论
  • XC 10 - Tip #8: When assembly hell breaks loose - hunt & fix

    XC 10 - Tip #8: When assembly hell breaks loose - hunt & fix

    Just a few days before a big milestone, we need to deliver our Sitecore Commerce solution to a customer, Sitecore…

    1 条评论
  • XC 10 - Tip #7: When the docs fails - Google

    XC 10 - Tip #7: When the docs fails - Google

    Ok, a bit of an obvious one: if you need an answer, you Google. But if you hit a Sitecore documentation page in most…

  • XC 10 - Tip #6: When the docs fails -ILSpy

    XC 10 - Tip #6: When the docs fails -ILSpy

    The best documentation is the code. And the code you need, especially when replacing for example a pipeline block where…

社区洞察

其他会员也浏览了