简体   繁体   English

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

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

I have a question about the Microsoft Visual Studio Installer Projects 2022.我对 Microsoft Visual Studio 安装程序项目 2022 有疑问。

I read a lot articles and Stackoverflow questions about creating an installer of an Visual Studio project.我阅读了很多关于创建 Visual Studio 项目安装程序的文章和 Stackoverflow 问题。

For example in the Visual Studio Installer Projects you can select at the Prerequisities the second radio button, that the Prerequisities will be downloaded from the same location as my application.例如,在 Visual Studio 安装程序项目中,您可以在 Prerequisities 的第二个单选按钮处 select,即 Prerequisities 将从与我的应用程序相同的位置下载。 I search a lot but i still got an error message that the runtimes are not installed.我搜索了很多,但我仍然收到未安装运行时的错误消息。

(German Error Message) (德语错误信息)

    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

I also tried to include the dotnet runtime installer inside the projects, which also did not work.我还尝试在项目中包含 dotnet 运行时安装程序,但这也不起作用。

Does anyone know how to fix the problem and let my program installer also install the runtime?有谁知道如何解决问题并让我的程序安装程序也安装运行时? If yes, please use screenshots and be preciese:)如果是,请使用屏幕截图并准确:)


I got a second problem.我遇到了第二个问题。 assumed i can let the installer also install my runtimes there is a second problem.假设我可以让安装程序也安装我的运行时,还有第二个问题。

If i start the installer without the runtimes, the installer shows me a message that i have to install the runtimes.如果我在没有运行时的情况下启动安装程序,安装程序会向我显示一条消息,我必须安装运行时。

is it possible to deactivate the message?是否可以停用该消息?

Thanks to Panagiotis Kanavos for the pointers.感谢 Panagiotis Kanavos 的指点。

Your first question shows that the error is about prerequisites, and the document is to add prerequisites conditional method.您的第一个问题显示错误是关于先决条件的,文档是添加先决条件条件方法。

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

The second problem is that when there is no runtime, you can try to establish an independent deployment, package it into an executable file independently, and run it on the server without installing any runtime-related things at all.第二个问题是,在没有runtime的时候,可以尝试建立一个独立的deployment,package独立成一个可执行文件,在服务器上运行,根本不用安装任何runtime相关的东西。

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

相关问题 使用 Visual Studio 安装程序安装后 .NET WPF 运行时错误 - .NET WPF runtime error after installing with Visual Studio Installer Visual Studio 2017 C#安装程序项目未安装我的应用程序 - Visual Studio 2017 C# installer project is not installing my app 在 Visual Studio 2022 (.NET6) 中创建 C# 项目模板 - Create C# Project Templates in Visual Studio 2022 (.NET6) 旧的C#项目不在Microsoft Visual Studio 2017中运行 - Old C# projects not running in Microsoft visual studio 2017 Microsoft Visual Studio 2017安装程序项目启动条件检查不适用于.net 4.7.1 - Microsoft Visual Studio 2017 Installer Projects launch condition check not work for .net 4.7.1 使用 Visual Studio 安装程序项目将 ASP .NET 核心服务安装到 IIS - Installing ASP .NET Core service to IIS using Visual Studio Installer Projects 代码定义 Window(Visual Studio 2022 的)是否支持 C# 项目? - Does Code Definition Window (of Visual Studio 2022) support C# projects? Visual Studio 2022,C# 格式化问题? - Visual Studio 2022, C# formating question? Visual Studio 2022 片段不适用于 C# - Visual Studio 2022 Snippets not working for C# Cryptsharp C# Visual Studio 2022 无定义 - Cryptsharp C# Visual Studio 2022 no definition
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM