Closed PaulsonM closed 4 years ago
Example of some Sitecore classes where errors are thrown
These error were also thrown in my cs classes, but I added namespace "using Sitecore;" or by adding alias.. But since Synthesis.model.cs is an auto-generated class how to resolve this and get my build successful..?!
Am I'm missing something here..
@PaulsonMac based off where the red squiggly lines are, it looks like whatever csproj
the Synthesis.Model.cs
file is in is missing a reference to Sitecore.Kernel
and Sitecore.ContentSearch
.
Thanks very much for your reply :)
I already tried adding Sitecore.Kernel
and Sitecore.ContentSearch
as a reference to that project, but it is not adding these references but VS simply throws the below error :
I also tried adding Sitecore.Kernel
and Sitecore.ContentSearch
as a nuget package, but same error persists
Is it possible you use "sitecore" in your namespace?
I can try to consider adding "Sitecore.xyz.xyz" as my project name. But before considering, I want to know whether it is not possible to use Synthesis unless we have "Sitecore." at the beginning of the namespace/project name..? If there is no other solution to fix this issue, then I can try considering it..
But having "Sitecore." in my namespace always fixes the error. As described in this issue name, I'm not able to keep Customer/Partner name in the beginning of the namespace
hey @PaulsonMac - I ping'd you on Sitecore slack a few days ago asking for a bit more information in a DM
Hi Ben! I'm sorry.. this issue was fixed by my team leader. I wanted to close this issue then, but was quite busy.. I think I missed renaming the project name in some place.. So, this issue is fixed for me..
Do you want to request a feature or report a bug? Bug
What is the current behavior? Building solution fails due to error in Synthesis,model.cs
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior? Synthesis,model.cs should build successfully without error
Please mention your Sitecore version and Synthesis version. Sitecore 9.3 & Synthesis 9.1.0.2