来自本地主机的 Visual Studio 动态 javascript 参考智能感知

发布于 2024-12-08 00:56:30 字数 331 浏览 2 评论 0原文

看来 Visual Studio 2010 将跳过未格式化的引用 http://xx...我正在尝试使用

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

来生成智能感知动态 JavaScript 结果,无需经历设置子域的麻烦。

我使用过 fiddler,发现如果我不包含子域,Visual Studio 会完全忽略我的引用。没有尝试向我的脚本控制器发出请求。

有谁知道是否有解决方法?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

所谓喜欢 2024-12-15 00:56:30

您可以使用指向 127.0.0.1 的 lvh.me。

它可以在 VS2012 中运行

You can use lvh.me which points to 127.0.0.1.

It works in VS2012

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文