GithubHelp home page GithubHelp logo

Can't keep customer or partner name in naming helix projects (project namespace) as Synthesis.model.cs throws error about synthesis HOT 10 CLOSED

PaulsonM avatar PaulsonM commented on July 18, 2024
Can't keep customer or partner name in naming helix projects (project namespace) as Synthesis.model.cs throws error

from synthesis.

Comments (10)

PaulsonM avatar PaulsonM commented on July 18, 2024

Example of some Sitecore classes where errors are thrown

image

image

from synthesis.

PaulsonM avatar PaulsonM commented on July 18, 2024

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..

from synthesis.

blipson89 avatar blipson89 commented on July 18, 2024

@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.

from synthesis.

PaulsonM avatar PaulsonM commented on July 18, 2024

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 :

image

from synthesis.

PaulsonM avatar PaulsonM commented on July 18, 2024

I also tried adding Sitecore.Kernel and Sitecore.ContentSearch as a nuget package, but same error persists

from synthesis.

royvou avatar royvou commented on July 18, 2024

Is it possible you use "sitecore" in your namespace?

from synthesis.

PaulsonM avatar PaulsonM commented on July 18, 2024

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..

from synthesis.

PaulsonM avatar PaulsonM commented on July 18, 2024

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

from synthesis.

blipson89 avatar blipson89 commented on July 18, 2024

hey @PaulsonMac - I ping'd you on Sitecore slack a few days ago asking for a bit more information in a DM

from synthesis.

PaulsonM avatar PaulsonM commented on July 18, 2024

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..

from synthesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.