繁体   English   中英

C# - 在 Microsoft Visual Studio 安装程序项目 2022 中安装 .NET 6.0.7 运行时

[英]C# - Installing .NET 6.0.7 Runtime in Microsoft Visual Studio Installer Projects 2022

我对 Microsoft Visual Studio 安装程序项目 2022 有疑问。

我阅读了很多关于创建 Visual Studio 项目安装程序的文章和 Stackoverflow 问题。

例如,在 Visual Studio 安装程序项目中,您可以在 Prerequisities 的第二个单选按钮处 select,即 Prerequisities 将从与我的应用程序相同的位置下载。 我搜索了很多,但我仍然收到未安装运行时的错误消息。

(德语错误信息)

    ERROR: Um "Erforderliche Komponenten von demselben Speicherort wie die Anwendung herunterladen" im Dialogfeld "Erforderliche Komponenten" aktivieren zu können, muss die Datei "net6coreruntime_x64\dotnet-runtime-6.0.7-win-x64.exe" für das Element ".NET Runtime 6.0.7 (x64)" auf den lokalen Computer heruntergeladen werden. Weitere Informationen finden Sie unter http://go.microsoft.com/fwlink/?LinkId=616018.
ERROR: General failure building bootstrapper
ERROR: Unrecoverable build error - 0x80004005

我还尝试在项目中包含 dotnet 运行时安装程序,但这也不起作用。

有谁知道如何解决问题并让我的程序安装程序也安装运行时? 如果是,请使用屏幕截图并准确:)


我遇到了第二个问题。 假设我可以让安装程序也安装我的运行时,还有第二个问题。

如果我在没有运行时的情况下启动安装程序,安装程序会向我显示一条消息,我必须安装运行时。

是否可以停用该消息?

感谢 Panagiotis Kanavos 的指点。

您的第一个问题显示错误是关于先决条件的,文档是添加先决条件条件方法。

https://docs.microsoft.com/en-us/visualstudio/deployment/installer-projects-net-core?view=vs-2022#prerequisites你能澄清一下它是否对你没有帮助吗?

第二个问题是,在没有runtime的时候,可以尝试建立一个独立的deployment,package独立成一个可执行文件,在服务器上运行,根本不用安装任何runtime相关的东西。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM