开发者

Visual Studio dynamic javascript reference intellisense from localhost

开发者 https://www.devze.com 2023-04-10 02:37 出处:网络
It appears that Visual Studio 2010 will skip references that are not formatted http://x.x... I\'m trying 开发者_StackOverflowto use

It appears that Visual Studio 2010 will skip references that are not formatted http://x.x... I'm trying 开发者_StackOverflowto 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?


You can use lvh.me which points to 127.0.0.1.

It works in VS2012

0

精彩评论

暂无评论...
验证码 换一张
取 消