Last post Nov 15, 2013 01:22 AM by Starain chen - MSFT
Nov 13, 2013 09:42 AM|mkamoski2|LINK
Dear Developers --
The Visual Studio 2012 code window seems like it loses project-based references upon file opening.
Here are the details.
I am using Visual Studio 2012, on Windows 7, all fully-patched, writing in C#.
The Soltion is simple-- just 4 projects-- MyEntities, MyDataModel, MyBusinessComponents, MyServices (WCF-style service layer).
All projects target ".NET Framework 4.5", and all use Project-based references to each other, variously pointing to each other when necessary, in a typical way.
All other referneces are GAC-based references pointing to built-in .NET Framework Assemlies, so there are no 3rd party DLLs involved, etc.
(1). Open Solution, Close All Documents, Clean Solution, Rebuild Solution, and AOK.
(2). Open code file in the editor, and BOOM, red-squiggle errors appear under code lines that point to other projects in the same Solution, build fails.
Usually, it does seem to "go away", after a few failed Solution builds and/or after a successful Start Debugging runs.
But it tends to come back later, losing all IntelliSense, causing great concern, killing efficiency, shaking confidence in the IDE, and etc.
Is there a fix or a workaround for this?
-- Mark Kamoski
Nov 15, 2013 01:22 AM|Starain chen - MSFT|LINK
Thanks for your post!
According to your description, I tried it in VS2012 Ultimate and it works fine. So I can’t reproduce your scene.
I suggest that:
If you still have the issue, please provide something as follows: