SDK Question Bogus statements?

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
580
Reaction score
40
Points
43
Location
Happy Wherever
Hi
Can anyone help as regards loads of seemingly bogus statements/warnings I'm getting.
Everything compiles fine, but getting multiple "red-liners"......
 

Attachments

  • Mickey.png
    Mickey.png
    68.8 KB · Views: 24

Blake

Addon Developer
Addon Developer
Joined
Mar 9, 2009
Messages
189
Reaction score
61
Points
43
I see this from time to time in Visual Studio. Intellisense is acting up. It shows errors even though the project builds correctly.

Stack overflow has several discussions that may be of help.

I often have to close VS, delete the .suo files and restart.
 

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
580
Reaction score
40
Points
43
Location
Happy Wherever
Thanks Blake, this worked fine from that link.
I had thousands of intellisense errors and 0 build errors. After deleting .suo file and restarting VS intellisense errors are gone.

Suo file is located relatively to source in: .vs\SolutionName\v14\.suo

According to comment: Beware that *.suo is a hidden file.

Edit: According to comments, VS2017 has the same issue, so you can use similar solution: Delete .vs\SolutionName\v15\.suo
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,002
Reaction score
1,634
Points
188
Website
github.com
The first fix would be "Project > Rescan Solution", but if that doesn't work or freezes VS, then deleting files resets it.
 
Top