Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-396975: Ambiguous references & ItemGroup conditions

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Nov 29, 2013 1:59:23 PM
Updated Apr 12, 2018 5:07:02 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Critical
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 8.0.2, 8.1 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions
One of our projects has this structure:
<ItemGroup Condition=" '$(MyCondition)' == 'Foo' "> 
<Compile Include="Foo\File.cs" />
<ItemGroup>
<ItemGroup Condition=" '$(MyCondition)' == 'Bar' ">
<Compile Include="Bar\File.cs" />
<ItemGroup>
Foo\File.cs and Bar\File.cs are implementing the same class in the same namespace but for different configurations. It seems like both are being included and Resharper gives an Ambiguous Reference warning and is thus unable to parse the files. Everything compiles and runs.

Any help would be appreciated as right now I have to run with Resharper disabled

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>