In Module 5, I am getting an error on the Creating a Breadcrumb Component. I brought in the TAC.Sitecore.Abstractions project like the directions say and I added the reference for it in my event.tac.local project. When I try to build the TAC.Sitecore.Abstractions project, I am receiving the following errors:

Sitecore 9.0 errors

I have tried to Google these various errors and have not been able to find any solution.

Here is the SitecoreItem.cs file:

Code from SitecoreItem.cs

I appreciate any help that anyone can give to help resolve these errors.

Thank you.

  • Hey @SoccerZortz, welcome to Sitecore Stack Exchange, glad you found us. Looking at your screenshots, this looks like maybe something isn't set right in the project. But we would need to diagnose more, because of that it might be better to open a chat here on SSE or head over to sitecorechat.slack.com and ask there, or the community forums at community.sitecore.net - SSE is not an easy place for conversation and diagnosing things, so you'll probably get more help at the other sites.
    – Richard Seal
    Aug 27 '18 at 20:19
  • 1
    The error seems to be due the expression bodied method on Line 29. Most likely you missing a package reference, check if your project is using Microsoft.Net.Compilers nuget package.
    – jammykam
    Aug 27 '18 at 20:43

Check reference of Microsoft.Net.Compilers remove obj folders (clean solution build) remove any missing reference and add again. (Reference generated error or appear as warning) Make sure you aren't missing any reference in any project

  • Thank you so much for your help. That seemed to fix it. Thank you @jammykam too! Aug 28 '18 at 13:00

I don't believe this is a missing references issue.

Check your TestItem.cs file. You have mismatched { and } brackets, likely missing the last closing }. Once that is sorted out, TAC.Sitecore.Abstractions will compile correctly.

The remaining errors are just followups from this initial error.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.