问题
I'm working with Visual Studio 2010 which seems to have suddenly broken?! I have a solution open, opened a class and added:
namespace Admin
{
public static class SessionManager
{
public static IEnumerable<UserGroupAccess> this is is annoying and will actually BUILD ?!?"!?!?!?!?!
... [rest of class code]
After a CLEAN SOLUTION > BUILD SOLUTION, I get a report of "Build Succeeded". My Intellisense and syntax checking etc seems to have packed up!
Anybody had this problem before?
回答1:
Fixed it - Just for other FYI :
- Closed Visual Studio.
- Deleted the Solution (.sln) File from the solution folder.
- Opened Visual Studio.
- Opened the first/main project (from the broken solution).
- Added the remainder of the projects that were in that solution.
- Saved the new Solution File.
This appears to have worked!! :)
来源:https://stackoverflow.com/questions/8561074/syntax-intellisense-broken