[英]Hot To Auto Install .Net With My Installer To Run My Application
我已经在我的 PC 中使用 C# 创建了一个控制台应用程序,它运行正常,但是当我在客户端 PC 上安装它时,它显示它需要安装 .net 但问题是他们无法访问互联网,所以我如何附加和安装 .net当我的安装程序运行时(.MSI)
In .net 6 you can create a self-contained single executable file by publishing like this:在 .net 6 中,您可以通过像这样发布来创建一个自包含的单个可执行文件:
dotnet publish -p:PublishSingleFile=true -r win-x64 -c Release --self-contained true
See: https://dotnetcoretutorials.com/2021/11/10/single-file-apps-in-net-6/请参阅: https ://dotnetcoretutorials.com/2021/11/10/single-file-apps-in-net-6/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.