Argument Type [System.Uri(4.0.10.0)] is not assignable to [System.Uri(4.0.0.0)]

First my setup:
- Visual Studio 2013 Ultimate
- Resharper 9 Update 1
- Net.Framework up to 4.5 installed (had 4.6 installed previously)
- C# Windows 8.1 Class Libary Project

My Code:
var image = new BitmapImage(new Uri("test.bmp"));

My Problem:
Resharper is showing me the following error on this line:
Argument type    'System.Uri [System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]' is not assignable to parameter type
                         'System.Uri [System, Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089]'.

First of all, the code is compiling and running fine, without intellisense (Visual Studio legacy one) errors.

I assume the created Uri is out of the 4.5.1 Framework but the Bitmap Uri is part of the 4.5 one.
Maybe someone can recreate this? Or it is just a bug of Resharper?

Thanks in advance!

1 comment
Comment actions Permalink

Hello Dave,

  Thanks for the report.

  I reproduced the issue and filed a new ticket to YouTrack https://youtrack.jetbrains.com/issue/RSRP-432176.

Thanks!

0

Please sign in to leave a comment.