Visual Studio 部署项目应用程序快捷方式不允许拖放文件打开

发布于 2024-12-08 00:56:14 字数 412 浏览 1 评论 0原文

我在从 Visual Studio 2010 部署项目在桌面上创建应用程序快捷方式时遇到问题。快捷方式创建得很好,但是当我将应用程序特定的文件拖放到快捷方式上时,它不起作用(光标变成带有斜线的红色圆圈)。另一方面,如果我转到应用程序目录并对可执行文件本身执行此操作,则它可以正常工作(它可以正确打开文件)。有趣的是,如果我在安装后手动创建可执行文件的快捷方式,它也可以将文件拖放到该快捷方式上。

当我尝试解决此问题时,我发现可能有用的一件事是,如果我打开两个快捷方式的属性对话框(部署项目创建的快捷方式和我手动创建的快捷方式),则手动创建的快捷方式将作为其目标可执行文件的完整路径,而另一个只有可执行文件的名称(尽管它的起始目录是正确的)。当我双击它们时,它们都会运行应用程序,并且它们都会显示正确的图标。

如何获得部署项目创建的快捷方式以允许将可执行文件拖放到其上以打开它们?

I'm having an issue with an creating application shortcut on the desktop from a Visual Studio 2010 deployment project. The shortcut is created just fine, but when I go to drag and drop an application-specific file onto the shortcut, it doesn't work (the cursor turns into the red circle with a slash through it). On the other hand, if I go to the application directory and do this on the executable itself it works fine (it opens the file properly). The interesting part is if I manually create a shortcut to the executable after install, it also works to drag and drop files onto that.

Something that might be useful that I discovered when I was trying to fix this is that if I open up the properties dialog of both the shortcuts (the deployment project created one and the one I made manually), the manually created one has as its target the full path of the executable, whereas the other one just has the name of the executable (although its start in directory is correct). They both run the application when I double-click on them and they both have the correct icon displayed.

How do I get the deployment project created shortcut to allow drag and drop of executable files onto it to open them?

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

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

发布评论

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

评论(1

西瓜 2024-12-15 00:56:14

我有同样的问题。

首先我去了这里,它回答了你的问题:
http://social.msdn.microsoft.com/Forums/en/vssetup/thread/b57f1d84-9b0c-4c29-b140-0555f92ffed8

但显然支持 orca.exe 和 WiRunSQL.vbs似乎已经消失了,因为我在 msdn 上找不到它。

然后我发现 http://www.instedit.com 似乎已经成功了。我喜欢 vbs 脚本的自动回答,但是哦,好吧。

I had the same issue.

First i went here, which answers your question:
http://social.msdn.microsoft.com/Forums/en/vssetup/thread/b57f1d84-9b0c-4c29-b140-0555f92ffed8

But apparently support for orca.exe and WiRunSQL.vbs seems to have disappeared because I couldn't find it on msdn anywhere.

Then i found http://www.instedit.com which seems to have done the trick. I liked the automated answer of the vbs script, but oh well.

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