Visual Studio dynamic javascript reference intellisense from localhost

829 Views Asked by At

It appears that Visual Studio 2010 will skip references that are not formatted http://x.x... I'm trying to use

/// <reference path="http://localhost:12946/js/fancytest" />

to generate intellisense for a dynamic javascript result without going through the hassle of setting up a subdomain.

I've used fiddler and found that Visual Studio is entirely ignoring my reference if I don't include a subdomain. No request to my script controller is attempted.

Does anyone know if there is a workaround for this?

1

There are 1 best solutions below

0
On

You can use lvh.me which points to 127.0.0.1.

It works in VS2012