Visual Studio 2010 相关文件嵌套 [英] Visual Studio 2010 related file nesting

查看:31
本文介绍了Visual Studio 2010 相关文件嵌套的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 2008 中,您可以添加注册表项,以便 X.aspx.js 或 X.aspx.css 显示为嵌套在 X.aspx 下.我将使用以下注册表文件为网站和网络应用程序完成此操作:

In Visual Studio 2008 you could add registry entries so that X.aspx.js or X.aspx.css would show up as nested underneath X.aspx. I would use the following registry file to accomplish this for web sites as well as web apps:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{E24C65DC-7377-472b-9ABA-BC803B73C61A}\RelatedFiles\.aspx\.js]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{E24C65DC-7377-472b-9ABA-BC803B73C61A}\RelatedFiles\.aspx\.css]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{FAE04EC0-301F-11d3-BF4B-00C04F79EFBC}\RelatedFiles\.aspx]
".designer.cs"=dword:00000002
".cs"=dword:00000002
".js"=dword:00000002
".css"=dword:00000002

我用 10.0 替换了 9.0 并将更改应用到我的注册表中,但这并没有做到.我已经重新启动了 VS 以及我的计算机,并且我还尝试将相关文件读取到我的 Web 项目中.我在网上搜索了一下,发现有几个人在问同样的事情,但没有明确的解决方案(link1 link2).

I replaced 9.0 with 10.0 and applied the changes to my registry, but that's didn't do it. I have restarted VS as well as my computer, and I've also tried readding the files in question to my web project. I searched around online and found a few people asking about the same thing but no definite solution (link1 link2).

有谁知道如何在 2010 中让文件嵌套?

Does anyone know how to get files to nest in 2010?

推荐答案

看起来 VS2010 设置是按用户"而不是按机器"设置的哦!

Looks like VS2010 settings are per "user" and not "per machine" D'oh!

因此在 HKEY_USERS 中搜索,直到找到您的用户设置.

So search in the HKEY_USERS until you'll find your user's settings.

这篇关于Visual Studio 2010 相关文件嵌套的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆