I am working on a project which supports arbitrary code in various forms (User Controls, custom Server Pages, etc.), so sometimes I will download or receive a file that I want to view or modify quickly. But, when this file does not reside within the Solution hierarchy, the syntax highlighting and Intellisense for the custom namespaces/classes I've created do not work and in fact show as errors.
我正在开发一个项目,该项目支持各种形式的任意代码(用户控件、自定义服务器页面等),所以有时我会下载或接收一个我想要快速查看或修改的文件。但是,当这个文件不位于解决方案层次结构中时,我创建的自定义名称空间/类的语法高亮显示和智能感知将不起作用,实际上显示为错误。
So, how do I configure Visual Studio in such a way that any file I open will open in the context of the current Solution, as if I opened it in a subdirectory of the Project root folder?
那么,如何配置Visual Studio,使我打开的任何文件都能在当前解决方案的上下文中打开,就像我在Project root文件夹的子目录中打开一样?
1 个解决方案
#1
1
In previous versions of Windows, I worked around this by creating a symlink (with Windows's mklink
command) within the Project folder to my download/temporary location, and then opening the files after navigating to them through the symlink.
在以前的Windows版本中,我通过在项目文件夹中创建一个symlink(使用Windows的mklink命令)到我的下载/临时位置,然后通过symlink打开文件。
#1
1
In previous versions of Windows, I worked around this by creating a symlink (with Windows's mklink
command) within the Project folder to my download/temporary location, and then opening the files after navigating to them through the symlink.
在以前的Windows版本中,我通过在项目文件夹中创建一个symlink(使用Windows的mklink命令)到我的下载/临时位置,然后通过symlink打开文件。