.NET - 在安装时创建桌面快捷方式?
仅当应用程序面向 .NET Framework 3.5 时,安装期间创建桌面快捷方式的选项才可用吗?在我的一个项目中,该选项呈灰色并且针对 .NET Framework 2.0。如果您想知道,我使用的是 Visual Studio 2008 Express Edition。
Is the option to create a desktop shortcut during installation only available if the application targets the .NET Framework 3.5? On one of my projects, the option is grayed out and is targeting the .NET Framework 2.0. In case your wondering, I am using Visual Studio 2008 Express Edition.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 Visual Studio 2008(非 Express)安装和部署项目模板,我能够包含 .NET 2.0 .exe(一个 Windows 窗体应用程序,已确认是针对 .NET 2.0 构建的)并让它检测 .NET 2.0 .exe 文件。 NET 依赖。然后,我可以毫无问题地在桌面上创建 .exe 的快捷方式(通过在“文件系统”窗口内的“用户桌面”文件夹中创建快捷方式)。
编辑:
我上面描述的部署过程与您遇到问题的过程完全不同,我很抱歉。为了稍微澄清一下这个问题,我相信这是一个正在讨论的 C# Express Edition 项目,部署方法是通过“项目属性”->“发布”选项卡。我可以确认 Visual Studio Professional 2008 中存在这个相同快捷方式选项灰显“功能”,但我无法确定其确切原因;我想这与它想要如何部署事物的复杂性有关(例如自动检查更新)。
我原来的帖子对您来说是一种解决方法,但遗憾的是我提到的安装和部署项目并未与 VS C# Express Edition 一起打包。
Using the Visual Studio 2008 (non-express) Setup and Deployment project template, I'm able to include a .NET 2.0 .exe (a windows forms app, confirmed to have been built targeting .NET 2.0) and have it detect the .NET dependency. I'm then able to create a shortcut on the desktop to the .exe without issue (by creating a shortcut in the "User's Desktop" folder within the "File System" window).
Edit:
What I described above is a deployment process quite different from the one that you're having problems with, I apologize. To clarify the question slightly, I believe this is a C# Express Edition project being discussed, and the deployment method is via the Project Properties->Publish tab. I can confirm this same shortcut-option-grayed-out 'feature' exists in Visual Studio Professional 2008, and I can't establish why this is exactly; I'd imagine it has something to do with the sophistication of how it wants to deploy things (with such do-dads as checking for updates automatically).
My original post is then a kind of workaround for you, but alas the Setup and Deployment project I mentioned is not packaged with VS C# Express Edition.
IronRuby 的目标是 2.0SP1 并且可以有这个选项。这可能是安装程序技术或 Express 的限制。 Wix 是我们使用的,可能想看看。
IronRuby targets 2.0SP1 and can have the option. It's probably a limitation of the installer technology or Express. Wix is what we use, might want to look at that.