Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Publish Because of Intellisense Errors

In VS 2015, I have a solution that builds and debugs just fine. But, when I go to publish it, it won't let me because of 60 intellisense errors.

I've found a few threads like these:

Visual Studio 2015: Intellisense errors but solution compiles

Intellisense keeps showing errors while build is successful Visual Studio 2015

I've tried all the answers & suggestion, even in the comments.

What I've tried:

  • Go into the references of every project in the solution. Remove the reference to C#, and to all of the other projects. Clean. Rebuild (which of course failed.) Then add them all back. Clean. Rebuild.

  • Delete every .suo file within the solution. Clean. Rebuild.

  • Delete all of the bin and obj folders within the solution. Clean. Rebuild.

  • Do all of the above, but wait to do a clean and rebuild until all three steps had been done. Then clean & rebuild.

  • Updated every nuget package in the solution to the newest version.

Anyone else ever seen this and found a fix?

UPDATE:

The 60 errors are all over the place. Here's just a sample: enter image description here

like image 242
Casey Crookston Avatar asked Nov 08 '22 22:11

Casey Crookston


1 Answers

This question is getting a lot of views, and some stars. So I thought I would circle back to it and post the solution I found.

It turns out that my issue centered on TypeScript. Another developer had installed in on this solution while using Visual Studio 2017. And when I tried to publish using Visual Studio 2015, it kept throwing the Intellisense errors and would not let me publish.

The only way we figured out how to get around this was for me to upgrade to VS 2017. (I intended to anyway, but this just hurried the process up a little.) Once the upgrade was complete, the Intellisense errors went away and I was able to publish.

I hope this helps other people.

like image 65
Casey Crookston Avatar answered Nov 15 '22 11:11

Casey Crookston