如何在 Windows 7 任务栏中固定 Visual Studio 解决方案

发布于 2024-08-04 12:45:08 字数 114 浏览 6 评论 0原文

正如标题所示。是否可以?当我右键单击任务栏中的 Visual Studio 时,我有一个“最近”类别,但我只有 1 个可以固定的 .cs 文件。

现在的问题是:如何将 .sln 解决方案固定在那里?

As in the title. Is it possible? When I rightclick on Visual Studio in a Taskbar I have a "Recent" category there i have but 1 .cs file that I can pin.

Now the question is: what to do to pin a .sln solution there?

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

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

发布评论

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

评论(7

笔芯 2024-08-11 12:45:08

如果您将 VSLauncher.exe 固定到任务栏(将其拖入),您将在右键单击菜单上获得最近的项目和解决方案。

您可以在程序文件/公共文件目录中找到此exe。我的位于

C:\Program Files\Common Files\Microsoft Shared\MSENV\VSLauncher.exe

您也可以通过将解决方案拖到任务栏中来执行此操作(其作用与上面相同)。如果您执行此操作,右键单击它将显示最近的项目和解决方案。

希望这有帮助。

If you pin the VSLauncher.exe to the taskbar (drag it in) you will get recent projects and solutions on the right click menu.

You can find this exe in your program files / common files directory. Mine is in

C:\Program Files\Common Files\Microsoft Shared\MSENV\VSLauncher.exe

You can also do this by dragging a solution into the task bar (which does the same as the above). If you do this rightclicking it will show recent projects and solutions.

Hope this helps.

伪装你 2024-08-11 12:45:08

这是针对 Visual C++ 2008 Express 版本的。您可以适应其他版本。

reg 添加 HKCR\.sln\OpenWithProgids /v VCExpress.dsw.9.0

This is for Visual C++ 2008 Express Edition. You may adapt for other editions.

reg add HKCR\.sln\OpenWithProgids /v VCExpress.dsw.9.0

随梦而飞# 2024-08-11 12:45:08

这是一个老问题,但我找到了一种方法,可以避免 Vladimir Grigorov 在评论中提到的已接受答案的缺点,即任务栏上会显示一个额外的 VS 图标。

不要固定 VSLauncher.exe,而是将

devenv.exe

(C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE)

固定到任务栏。

现在将您的解决方案拖到任务栏中的 VS 图标上。您应该会看到一个工具提示,显示“固定到 Microsoft Visual Studio 2010”。
使用此方法可以让您将解决方案固定到任务栏,而无需在任务栏上显示其他 VS 图标。

This is an old question, but I found a way avoid the drawback to the accepted answer that Vladimir Grigorov mentioned in a comment, that an additional VS icon shows up on the taskbar.

Instead of pinning VSLauncher.exe, pin

devenv.exe

(C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE)

to the taskbar.

Now drag your solution onto the VS icon in the taskbar. You should see a tooltip saying "Pin to Microsoft Visual Studio 2010".
Using this method will let you pin solutions to the taskbar without showing additional VS icons on the taskbar.

笑忘罢 2024-08-11 12:45:08

VSLauncher.exe 需要解决方案或项目路径才能执行任何有用的操作。在任务栏项目的右键单击中,您可以右键单击 Microsoft 版本选择器,然后单击属性。然后,您可以通过编辑目标字段为其指定路径。这将阻止您收到错误。

这一切都是基于根据您的问题向任务栏添加一种解决方案。我没有找到添加多个的方法!

希望这有帮助。

The VSLauncher.exe needs a solution or project path to do anything usefull. In the right click of the taskbar item you can right click the microsoft version selector and click properties. There you will then be able to give it a path by editing the target field. This will stop you getting the error.

This is all based on adding one solution to the task bar as per your question. I did not find a way of adding more than one!

Hope this helps.

当梦初醒 2024-08-11 12:45:08

要扩展 karyonix 的答案:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0]
@="Microsoft Visual Studio Solution"
"InfoTip"="prop:Size;Type;DocComments;Write"
"TileInfo"="prop:Type;DocComments;Size"

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell]

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell\Open]

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell\Open\command]
@="\"c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.exe\" \"%1\""

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx]

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx\IconHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx\PropertyHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

[HKEY_CLASSES_ROOT\.sln\OpenWithProgids]
"VisualStudio.sln.9.0"=""

请注意对 Program Files (x86) - adjustment 的引用如果您运行的不是 64 位 Windows。

这会将 Visual Studio 2008 添加到“打开方式”菜单中,并在右键单击菜单中启用最新的解决方案。

To expand on karyonix's answer:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0]
@="Microsoft Visual Studio Solution"
"InfoTip"="prop:Size;Type;DocComments;Write"
"TileInfo"="prop:Type;DocComments;Size"

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell]

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell\Open]

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell\Open\command]
@="\"c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.exe\" \"%1\""

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx]

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx\IconHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx\PropertyHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

[HKEY_CLASSES_ROOT\.sln\OpenWithProgids]
"VisualStudio.sln.9.0"=""

Note the reference to Program Files (x86) - adjust if you're not running 64-bit Windows.

This adds Visual Studio 2008 to the "Open With" menu, and enables recent solutions in the right-click menu.

望她远 2024-08-11 12:45:08

只是想向 Blorgbeard 和 karyonix 添加一点,这绝对有效,以下是我如何修改它以与 VS 2005 sln 文件一起使用:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.sln]

[HKEY_CLASSES_ROOT\.sln\OpenWithProgids]
"VisualStudio.sln.8.0"=""

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0]
@="Microsoft Visual Studio Solution"
"InfoTip"="prop:Size;Type;DocComments;Write"
"TileInfo"="prop:Type;DocComments;Size"

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell]

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell\Open]

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell\Open\command]
@="\"D:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\IDE\\devenv.exe\" \"%1\""

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx]

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx\IconHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx\PropertyHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

确保正确编辑命令路径,因为对于 2005,文件夹是 Microsoft Visual Studio 8,而不是 8.0

Just wanted to add to Blorgbeard and karyonix that this definitely works, and here's how I modified it to work with VS 2005 sln files:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.sln]

[HKEY_CLASSES_ROOT\.sln\OpenWithProgids]
"VisualStudio.sln.8.0"=""

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0]
@="Microsoft Visual Studio Solution"
"InfoTip"="prop:Size;Type;DocComments;Write"
"TileInfo"="prop:Type;DocComments;Size"

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell]

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell\Open]

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell\Open\command]
@="\"D:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\IDE\\devenv.exe\" \"%1\""

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx]

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx\IconHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx\PropertyHandler]
@="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"

Make sure you edit the command path correctly, because for 2005 the folder is Microsoft Visual Studio 8, not 8.0

暮倦 2024-08-11 12:45:08

从无法访问的驱动器中单击解决方案后,我丢失了固定的解决方案。解决方法如下:

  1. 按照这些步骤
  2. 重新启动 explorer.exe 进程

I lost my pinned solutions after clicking solution from inaccessible drive. Here is how to fix:

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