5
votes

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

1
What do the errors say?mason
I highly suspect they are a red herring, but see update to OPCasey Crookston
Does it build in the Release build configuration?stuartd
Good question. And yes, it does.Casey Crookston
I'm starting to think I'm going to need to create a new solution and start migrating projects into it one at a time.Casey Crookston

1 Answers

1
votes

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.