Currently Being Moderated

I get weird errors "Argument type 'Foo.Bar is not assignable to parameter type 'Foo.Bar'"

VERSION 1

Created on: Dec 3, 2004 6:36 PM by Andrey Serebryansky - Last Modified:  Dec 3, 2004 6:36 PM by Andrey Serebryansky

Another symptom of this problem are errors like "Cannot convert source type 'Foo.Bar' to target type 'Foo.Bar'". This problem may happen if you use references to output assemblies of projects instead of (ordinary) references to projects. In such a situation ReSharper is unable to recognize that the types 'Foo.Bar' defined in the project X and in the output assembly of the project X are in fact the same thing, so it underlines that these types are not assignable to each other.

 

We're going to address this issue in the intermediate version of ReSharper for VS.NET 2003.

Average User Rating
(17 ratings)




Harald-René Flasch Harald-René Flasch  says:

Problem still exists in 2.0.4! (this is the latest VS2003 version?) Which version fixes this issue!?

Bill Richards Bill Richards  says in response to Harald-René Flasch:

The actual fix to this is to make your project references real project references and not references to the build output of another project. This is ideal for your VS solution as well as for R#

Harald-René Flasch Harald-René Flasch  says in response to Bill Richards:

Thank you for the information! I'll give it a try!

I assume that this applies also to newer versions of R#?

More Like This

  • Retrieving data ...