且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

asp.net、url重写模块和web.config

更新时间:2022-11-05 07:37:40

我能够在 Visual Studio 2010 中实现此功能.

I was able to get this working in Visual Studio 2010.

从 Ruslan 的帖子开始这里 并下载 2.0 IntelliSense 文件.然后,只需按照他之前发布的说明 这里.我最后所做的只是按照 Ruslan 的指示运行以下命令:

Start with Ruslan's post here and download the 2.0 IntelliSense file. Then, just follow the directions he posted previously here. All I ended up doing was running the following command as Ruslan instructs:

C:download_directory ewrite2_intellisense>cscript UpdateSchemaCache.js

正如 Christoph 在他的评论中指出的那样,如果您使用的是 Visual Studio 2010,请确保在运行上述命令之前将 UpdateSchemaCache.js 中的 VS90COMNTOOLS 替换为 VS100COMNTOOLS.

As Christoph points out in his comment, make sure you replace VS90COMNTOOLS with VS100COMNTOOLS in UpdateSchemaCache.js before running the above command if you are using Visual Studio 2010.

我不需要重新启动 Visual Studio.我仅将 部分添加到适用的 Web.config 转换文件中,因为在主 Web.config 中使用它会破坏本地调试.

I did not need to restart Visual Studio. I added the <rewrite> section only to the applicable Web.config transformation files, as having it in the main Web.config breaks local debugging.