0

I have a Solution with a lot of projects and I rewrote one project with other technologies for which i had to change the target framework from .NET 3.5 to .NET 4.0. All my other projects are in .NET 3.5

Now none of my references seem to work anymore. I have 2k "Are you missing a using directive or an assembly reference?"-Errors

I looked at my references in my other projects and there was a little yellow exclamation mark on the one I changed, that looked a bit like this:

i wanna be the boshy

I tried to add the Reference again, some Errors were gone, but that little exclamation mark was still there

Am I doing something wrong? How can I get rid of that exclamation mark? Is it bad to have different .Net versions in one Solution? And will it work if i get my References right?

A.Ima
  • 266
  • 6
  • 13
  • Sometimes the error window bugs out for me like this. After adding the references again, save the project, close out ALL instances of Visual Studio and re-open your project. This often fixes errors that are "stuck" in the error log. – Lews Therin Dec 11 '15 at 14:22

1 Answers1

2

Is it bad to have different .Net versions in one Solution?

It's not usual to have this scenario, but it should work as long as the projects that are still on .NET 3.5 don't depend on the project you upgraded to .NET 4.0. It would make things easier to manage if you upgraded all the projects, but it's not essential.

And will it work if i get my References right?

Yes.

Try removing and readding the references that are showing the error and also clean and rebuild the solution too.

ChrisF
  • 134,786
  • 31
  • 255
  • 325
  • I deleted my Reference and added it from the browse tab, not from the projects tab. Then I cleaned and rebuild it and the exclamation marks were gone. Now it works, thanks :D – A.Ima Dec 11 '15 at 15:16