Intellisense keeps showing errors while build is s

2019-07-15 08:06发布

So I'm working on a Xamarin project and suddenly Visual studio 2015 started freaking out it shows error red lines under every thing nearly for example :

InitializeComponent();

in every page is red lined ,the project builds and runs without error, the errors are coming from Intellisense only I looked for a solution on the net many posts talked about this issue but none had a working solution for me.

so here is what I tried:

1)deleting the .suo file

2)deleting xamarin temp folder (and eventually I deleted everything in the temp folder)

3)Build/Clean - Build/Rebuild

4)tried to locate the sdf Intellisense file but found none

5)many talked about reshaper problems but I don't have it.

6)the project is not on git so this also is not the problem

7) tried to delete the /bin and /obj also with no luck

I'm getting crazy about this can someone help with this one?

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-07-15 08:15

As requested I'm sharing what solved the problem for me, I uninstalled xamarin forms from my project in the Package manager and tried to install it back again to see if that helps but it didn't, in a desperate act I took a look at the updates available in the package manager and there was one for xamarin I didn't believe it will solve the problem since the project ran fine on the current version,but tried it anyway for my surprise the problem was solved, It seems that the update fixed some files that the reinstall didn't for some reason.

Since I don't think this can be called a solution since not every time this will happen there will be an update available to sort the issue, I came to a conclusion that the only thing to certainly fix the issue is to open a new project and painfully migrate your code to the new project, This will surely solve the problem but is a painful process.

查看更多
登录 后发表回答