Ambiguous reference

I got "Ambiguous reference" notification in every cs file about every item that is declared in xaml and referenced by its x:Name property and also in every InitializeComponent method, suggesting to create overload...

Sometimes it goes away after a soultion clean, sometimes it doesnt, but it is always back after a VS restart!

VS Pro 2017 15.5.6 and ReSharper Ultimate 2017.3.2

7 comments

I've just reported a similar problem, but mine is tied to symbols in a .Net Standard (2.0) dll.

0

Hello! 

 

Thank you for the feedback.

Is there a chance you could provide solution which introduces the issue?

You can do it privately via 'Submit a request' form in the top of the page, we can also sign NDA if needed.

Thank you.

0

Hey Angelina!

Unfortunately i have no idea what breaks it, the screenshot i provided above is from our very complex in-company application which i can not share!

I tried to reproduce it by creating different scenarios but so far no luck, i can tell that it is working as intended in a newly created solution, if i have something i'll update this!

Thank you!

0

Hello,

I've got a similar problem, it is quite annoying, along with others :
- Ambiguous invocation: InitializeComponent() 
- Cannot resolve symbol 'App'

I've got R# 2017.3.2, and I'm using .Net Standard with Xamarin.Forms.

Any solutions ?

Thanks

0

Same problem here with 2018.1

All of my id's in my Resource.Id in my Xamarin/android c# project are markesd as 'ambiguous references'. This is because ReSharper is looking at my generated Resource.Designer.cs in the project, but is also picking up Resource.Designer.cs in .\obj\Release\DesignTime\

This makes ReSharper much less useful than it could be. I have deleted my bin directories, deleted my .suo files and cleared my ReSharper cache etc, but the problem persistes.

 

I have also removed *.Designer.cs from Options/Code Inspections/Generated Code but that made no difference either. Seemed to start happening when I update to 2018.1 - but that could easily be coincidence.

Here are my versions:

JetBrains ReSharper Ultimate 2018.1  Build 112.0.20180414.70444
dotTrace 2018.1.20180414.71711
ReSharper C++ 2018.1.20180414.71543
ReSharper 2018.1.20180414.71556
dotMemory 2018.1.20180414.71710
Application Packages:
JetBrains dotCommon Core build 112.0.20180414.70929 on 2018-04-14 07:09:54Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon ElevationAgent build 112.0.20180414.70929 on 2018-04-14 07:09:54Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon ExternalStorage build 112.0.20180414.70929 on 2018-04-14 07:09:54Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon Native Windows Core build 112.0.20180411.132145 on 2018-04-11 13:22:09Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon.Psi Navigation build 112.0.20180414.71537 on 2018-04-14 07:15:55Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon.Psi SourceView build 112.0.20180414.71537 on 2018-04-14 07:15:55Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon.Psi UnitTesting build 112.0.20180414.71537 on 2018-04-14 07:15:55Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon Remotable build 112.0.20180414.70929 on 2018-04-14 07:09:54Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon Standalone build 112.0.20180414.70929 on 2018-04-14 07:09:54Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon Timeline build 112.0.20180414.70929 on 2018-04-14 07:09:54Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotCommon UIInteractive build 112.0.20180414.70929 on 2018-04-14 07:09:54Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains dotMemory Core build 112.0.20180414.71710 on 2018-04-14 07:17:57Z rev git::refs/heads/wave12-eap9-rtm::0b6dbb0a43bc1aea82043c89ec91733cb5521e0f
.
JetBrains dotMemory Presentation build 112.0.20180414.71710 on 2018-04-14 07:17:57Z rev git::refs/heads/wave12-eap9-rtm::0b6dbb0a43bc1aea82043c89ec91733cb5521e0f
.
JetBrains dotMemory VisualStudio build 112.0.20180414.71710 on 2018-04-14 07:17:57Z rev git::refs/heads/wave12-eap9-rtm::0b6dbb0a43bc1aea82043c89ec91733cb5521e0f
.
JetBrains dotTrace Core build 112.0.20180414.71711 on 2018-04-14 07:18:08Z rev git::refs/heads/wave12-eap9-rtm::062521044575fd2204d21acbb1b99681b7ccfe79
.
JetBrains dotTrace Legacy CommonUI build 112.0.20180414.71711 on 2018-04-14 07:18:08Z rev git::refs/heads/wave12-eap9-rtm::062521044575fd2204d21acbb1b99681b7ccfe79
.
JetBrains dotTrace Legacy dotInstant build 112.0.20180414.71711 on 2018-04-14 07:18:08Z rev git::refs/heads/wave12-eap9-rtm::062521044575fd2204d21acbb1b99681b7ccfe79
.
JetBrains dotTrace Legacy Snapshot build 112.0.20180414.71711 on 2018-04-14 07:18:08Z rev git::refs/heads/wave12-eap9-rtm::062521044575fd2204d21acbb1b99681b7ccfe79
.
JetBrains dotTrace Presentation build 112.0.20180414.71711 on 2018-04-14 07:18:08Z rev git::refs/heads/wave12-eap9-rtm::062521044575fd2204d21acbb1b99681b7ccfe79
.
JetBrains dotTrace VisualStudio build 112.0.20180414.71711 on 2018-04-14 07:18:08Z rev git::refs/heads/wave12-eap9-rtm::062521044575fd2204d21acbb1b99681b7ccfe79
.
JetBrains EtwService Core build 112.0.20180414.70931 on 2018-04-14 07:09:43Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains EtwService msi build 112.0.20180411.133618 on 2018-04-11 13:36:48Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains EtwService Native Windows Core build 112.0.20180411.133618 on 2018-04-11 13:36:48Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Platform Core Ide build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Core MsBuild build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Core Shell build 112.0.20180411.131626 on 2018-04-11 13:17:55Z rev git::refs/heads/wave12-eap9-rtm::ce2e490fa40c624c5fd528e2d99ade20c401b4e9
.
JetBrains Platform Core Text build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Installer build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Interop CommandLine build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Interop dotMemoryUnit Framework build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Interop dotMemoryUnit Interop.Console build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Interop dotMemoryUnit Interop.Ide build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform RdProtocol build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Standalone Shell build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform Standalone TabWell build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform UIInteractive Ide build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform UIInteractive Shell build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform UIInteractive Text build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Platform VisualStudio build 112.0.20180414.70444 on 2018-04-14 07:05:08Z rev git::refs/heads/wave12-eap9-rtm::e9b831ed8586badf61995d5524eb555060b382bc
.
JetBrains Profiler Configurator WPF build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Editor Core build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Editor Windows BehaviorModel build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Editor Windows WPF build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler History Core build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler History WPF build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Kernel CleanUp build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Kernel Core build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Kernel InternalLauncher build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Kernel ProfilingInstance build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Kernel Windows Api build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Kernel Windows Engine build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Kernel Windows RemoteApi build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Native Windows Core build 112.0.20180411.133634 on 2018-04-11 13:37:03Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler Snapshot build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler VsIntegration Core build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Profiler VsIntegration Windows build 112.0.20180414.71115 on 2018-04-14 07:11:42Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Psi.Features Core build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features Cpp Src Core build 112.0.20180414.71543 on 2018-04-14 07:16:14Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Psi.Features Cpp Src VisualStudio build 112.0.20180414.71543 on 2018-04-14 07:16:14Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Psi.Features Diagramming build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features SolutionBuilder build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features src build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features Tasks build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features UIInteractive Core build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features UIInteractive Features build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features UIInteractive LiveTemplates build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features UIInteractive Refactorings build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features UIInteractive SolutionAnalysis build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features UIInteractive SolutionBuilder build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features UnitTesting build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains Psi.Features VisualStudio build 112.0.20180414.70939 on 2018-04-14 07:10:06Z rev git::refs/heads/wave12-eap9-rtm.
JetBrains ReSharper Plugins ReSharperTutorials build 112.0.20180414.71556 on 2018-04-14 07:16:27Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains ReSharper src build 112.0.20180414.71556 on 2018-04-14 07:16:27Z rev git::refs/heads/wave12-eap9-rtm::fdb6c2500175d547b2e88c55e9268915c759337b
.
JetBrains Timeline Src Shared build 112.0.20180414.71711 on 2018-04-14 07:18:08Z rev git::refs/heads/wave12-eap9-rtm::062521044575fd2204d21acbb1b99681b7ccfe79
.
dotMemory 2018.1 Licensed to Iain Cartwright. Subscription is valid through 29/06/2018. Perpetual for builds released before 30/06/2017
dotTrace 2018.1 Licensed to Iain Cartwright. Subscription is valid through 29/06/2018. Perpetual for builds released before 30/06/2017
ReSharper C++ 2018.1 Licensed to Iain Cartwright. Subscription is valid through 29/06/2018. Perpetual for builds released before 30/06/2017
ReSharper 2018.1 Licensed to Iain Cartwright. Subscription is valid through 29/06/2018. Perpetual for builds released before 30/06/2017
Deployment Packaging Identity: 12.0.20180414.124625
Visual Studio Professional 2017 (version 15.7.27703.2000).
Copyright © 2000–2018 JetBrains. All rights reserved.
0

I am also seeing the issue @Iaincartwright describes in my Xamarin project with Android resource properties.

0

Please sign in to leave a comment.