-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Class library has lost all intellisense in VS2017 after auto-migration #5975
Comments
@NTaylorMullen isn't this the same issue @sebastienros is running in to? |
@sebastienros Can confirm that brings back intellisense, thanks. Any downsides to switching the SDK? If there's anything I can help with re diagnosis/resolution please let me know. |
@vijayrkn would probably know best - are there any side effects to changing the SDK of a class library to |
There shouldn't be any side effects to changing the Net Sdk to Web Sdk. I don't know why intellisense is not working otherwise. |
@vijayrkn Publishing inside a docker container breaks with the
Edit: Same error occurs just when building within Visual Studio. So it's a choice between being able to build and run vs. having intellisense, unfortunately! |
@NTaylorMullen - is websdk needed for intellisense ? |
@svallis, sorry I missed seeing your comment about the build failure. Try setting |
Perfect, thanks @pranavkm! |
Excellent, finally working after trying various things all day. Found that you also needed to reopen the solution for the intellisense to start working. Thanks @pranavkm |
@rynowak - parking on your plate because this seems to be in the ballpark of what you've been up to. |
@Eilon sorry what's this about? Is this about tag helper intellisense in class libraries? |
@rynowak - that's what it looks like...? |
Not just tag helper intellisense - all intellisence is lost when the SDK is set to |
Look like the same issue aspnet/Tooling#1013 |
@NTaylorMullen fixed for preview2 right? |
Yup! |
Ok, thanks everyone for reporting this issue. This will be fixed in VS 2017 15.3-preview 2. If you have further issues with tooling for Razor please report them via VS Feedback or on aspnet/Razor |
After migrating a VS2015 MVC Core application with two projects (web app and class library) to VS2017 I've lost intellisense on all views within the class library. Pretty much everything in every single view is broken, so I'm sure it's something fairly basic that the migration tool didn't take care of for me. Even the
@model
directive in each razor view is an error.The
csproj
looks like this:I tried duplicating the
web.config
from the web application to the root of the class library but that didn't help. I've also tried moving over various entries from the web application's csproj file, but to no avail.The entire project still builds, runs and publishes perfectly. I only see errors if I have a
cshtml
file from the library open in VS.The text was updated successfully, but these errors were encountered: