Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Overlapping reference with method name.

(0) ShareShare
ReportReport
Posted on by 100

Hi, I am using visual studio 2017 professional for D365FO development. It was working fine but suddenly, references are overlapping method name in code editor. 
Morever, I tried with codelens but still same issue and also update the VS still same result. 
Please help!

pastedimage1680591005561v1.png

pastedimage1680591026266v2.png

Thanks 

  • Suggested answer
    Komi Siabi Profile Picture
    Komi Siabi 12,759 Most Valuable Professional on at
    RE: Overlapping reference with method name.

    Hello D356FO_Dev,

    Using visual studio 2017 professional implies that you are a version of D365FO VM which is a bit old. You might consider updating the Visual studio by opening, Visual studio installer, from the start Menu.

    The second option which is the best is backing up your objects and redeploy a new Dev environment just like Mohit suggested.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Overlapping reference with method name.

    I find setting up new development environment easy then fixing visual studio issues like this one.

  • D356FO_Dev Profile Picture
    D356FO_Dev 100 on at
    RE: Overlapping reference with method name.

    I tried both solutions but still no success.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Overlapping reference with method name.

    I am not sure what is the process to uninstall the visual studio and how to get D365 FO extension after uninstalling.

    But for the error while loading property, refer to the below thread.

    https://stackoverflow.com/questions/52160012/visual-studio-2017-error-in-test-property-page

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/d3fe7dfd-f432-4842-9c93-3b4155298ea4/choose-toolbox-items-error-an-error-occurred-loading-this-property-page?forum=vssetup

    Thanks,

    Girish S.

  • D356FO_Dev Profile Picture
    D356FO_Dev 100 on at
    RE: Overlapping reference with method name.

    Hi Girish, 

    showing me an error. 
    May be reinstalling visual studio will solve this issue but then I will loose this D365 extension as it is not available in tools and extensions. May be you have any other idea?
    Thanks
    pastedimage1680678327742v1.png

  • D356FO_Dev Profile Picture
    D356FO_Dev 100 on at
    RE: Overlapping reference with method name.

    Hi, if I reinstall visual studio but then most probably I could not find D365 FO extension. Is it correct then how would I get it?

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Overlapping reference with method name.

    For a temporary solution you can disable the codeLens option from the Tools >> Options >> Dynamics 365 >> X++ >> CodeLens>> Uncheck the enable codeLens.

    This will remove the reference option shown on the code.

    Thanks,

    Girish S.

  • D356FO_Dev Profile Picture
    D356FO_Dev 100 on at
    RE: Overlapping reference with method name.

    tried all the three options still no success :(

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Overlapping reference with method name.

    Can you try deleting VS cache

    dotnetrevisited.blogspot.com/.../how-to-clear-visual-studio-cache.html

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Overlapping reference with method name.

    Just try to move the method to next line and check.

    Place the cursor on the method and click on enter.

    Is it happening for one object or for all the objects?

    Try one more thing Just copy all the code into notepad - Remove all the code from the table - Save and build the project - Now copy the code again from the notepad and check.

    Thanks,

    Girish S.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans