Fix Error The type or namespace name 'Linq' does not exist in the namespace 'System'
I had an issue with System.Linq not being recognized. The way I solved it was to change the targeted framework of my website from 4.0 to to 3.5 and then switch back to the original targeted framework (in my case 4.0)
Hit Shift+F4 in Visual Studio.
Change the Target Framework from .Net Framework 4 to .Net Framework 3.5
Confirm with OK
Repeat this process in reverse so, again hit Shift+F4
Change it back from .Net Framework 3.5 to .Net Framework 4
0 Komentar