VS2010: In my newly created project, any time I try to add a reference to any of my other projects or, in this case, MySql.Data...I get an error that says "Incompatible Reference" - "In order to add it you should to change the project's target to a compatible framework first"
My project's target is set to .NET 4 and whether or not the reference I'm trying to add is or isn't set to .NET 4 I still get the error. Anyone got any suggestions? Thanks
To fix a broken project reference by correcting the reference path. In Solution Explorer, right-click your project node, and then select Properties. The Project Designer appears. If you're using Visual Basic, select the References page, and then click the Reference Paths button.
Add a reference Reference Manager opens and lists the available references by group. Select a reference to add, and then select OK. If you don't see the reference you're looking for, select Browse to locate the reference. (If you're developing C++ projects, you might not see a browse option.)
well I'm not sure what the problem was but if I browse to the physical file to add the reference instead of using the "Recent" or other dialogues in the the Add References window, it works just fine. Never figured out why the other way stopped working for me.
I had the same problem. The problem was resolved by adding the reference to the compiled dll file. It would work for me, but I got curious why this worked and the reference of the project doesn't.
I checked the project that I wanted to reference. In this project two more projects are referenced. I resolved the error by doing the following:
I hope this helps you in the future.
Regards,
Stefan
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With