Search code examples
asp.netvisual-studio-2015visual-studio-2017syntax-highlightingintellisense

Visual studio intellisense / syntax highlighting not working for remote files


I recently had to reinstall windows 10 on my laptop, and all applications. I have been using visual studio 2017 fine for months and months, but post install I cant seem to get code highlighting / intellisense working for remote files accessed over our VPN. Previously it would sometimes take a little time for the highlighting etc to be shown and I could often force it to pick it up using ctrl-k ctrl-d. Now it no longer seems to work at all. Im working with c# asp.net files.

If i copy the file's locally then it works, but obviously i lose the link to all references that are on the server by default. I've tried removing settings files and such, and even tried going back to visual studio 2015 which also used to work for me but to no avail. Someone else must be having these same issues?


Solution

  • Ok, so ive now solved this. VC++ runtime files needed installing locally for one of the assemblys on the server.

    Further update :

    I've had similar issues again after a recent reinstall, and this time I needed to make sure the correct .net Framework SDK / targeting packs were installed to match the target framework on the remote server.