我有一个需要打包的 C# WPF 应用程序。有什么建议吗?
因此,我有一个在 Visual Studio 2010 中创建的应用程序,我想知道如何打包它,以便用户可以将其安装在他们的计算机上。我确信我必须编写一些脚本以及调用 cmd 提示。基本上,我希望能够为我的团队构建的应用程序提供一个安装程序。
您有什么建议或教程推荐吗?这是一个学校项目,如果有人能帮助我开始这个项目,那真的会很有帮助。这是我的团队需要做的最后一件事。
谢谢!
乔·里斯塔诺
so I have an application that I have created in Visual Studio 2010 and I want to know how I can package it so a user can install it on their machine. I'm sure I will have to do some scripting as well as call cmd prompts. Basically I want to get it to the point where there is an installer for the application that my group has built.
Any suggestions or tutorials you recommend?? Its for a school project and it would really be helpful if someone could help me get this off the ground. Its the last thing my group needs to do.
Thanks!
Joe Ristaino
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
使用ClickOnce
Use ClickOnce
在 Visual Studio 中使用 MSI 安装程序安装项目。这很简单。
http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx
我不会使用一次点击...
好吧,这是一篇较新的文章
http://www.dreamincode。净/论坛/主题/58021-deploying-ac%23-application-visual-studio-setup-project/
Use the MSI installer setup project in Visual studio. It's very simple.
http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx
I wouldn't use click once...
Ok here's a newer article
http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/
Visual Studio 有它自己的安装程序项目,您可以检查一下。我个人将它们用于我在公司所做的任何项目。如果您使用该向导,您很快就会完成它。
在您的解决方案中,
右键单击
您的解决方案名称。添加
->新项目
。其他项目类型
->设置和部署
->Visual Studio Installer
选择安装向导,非常简单。主要输出意味着安装到程序文件夹中的内容。按照向导操作即可完成大部分工作。只剩下可选的调整要做。
Visual Studio has it's own installer projects, you could check those out. I personally use them for any projects I make at my company. If you use the wizard, you'll have it done in no time.
In your solution,
right click
your solution name in the Solution Explorer.Add
->New Project
.Other Project Types
->Setup And Deployment
->Visual Studio Installer
Choose the setup wizard, it's pretty easy. Primary output means what's is installed to the program folder. Follow the wizard and most of the work will be done. There will only be optional tweaking left to do.
我推荐 WiX。它有相当长的学习曲线,但它非常强大。
它预计将包含在 Visual Studio 的下一版本中(它并没有完全包含在 VS2010 中)。
I recommend WiX. It's got quite a bit of a learning curve, but it's totally powerful.
It's expected to be included in the next version of Visual Studio (it didn't quite make it into VS2010).