在Windows 7中发布便携式和独立的.NET应用程序

发布于 2025-02-12 13:51:02 字数 632 浏览 2 评论 0原文

我需要发布一个:

  1. 安装:
  2. 如果未安装在使用中的PC上,则不得 不得安装依赖项以执行其执行(没有C ++版本,.NET Framework的版本,.NET Framework等。 )。

为此,我在.NET 5.0中将应用程序发布,并根据图像中可见的设置发布。 在设置中,我指定了独立的属性。

在Windows 11,Windows 10和Windows 8.1上运行该应用程序,我没有问题,但是在Windows 7上,我有一个.NET如图所示,运行时ID 1023错误。

问题可能是什么?我应该如何发布该应用程序,以便我不需要安装任何内容?

I need to release an application that:

  1. must not be installed
  2. must not involve the installation of dependencies for its execution if they are not installed on the PC in use (no versions of C ++, versions of .net Framework, etc ...).

For this purpose I made the application in .NET 5.0 and published it according to the settings visible in the image.
In the settings I specify the Self-Contained property.
Publish Configuration

Running the application on Windows 11, Windows 10 and Windows 8.1 I have no problems but on Windows 7 I have a .NET Runtime ID 1023 error as in the image.
Windows 7 Error

What could be the problem? How should I publish the application so that I don't need to install anything?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑凤梨 2025-02-19 13:51:02

不幸的是,仅安装了扩展安全更新的Windows 7 SP1。同一陈述也适用于Net6。

我设法通过从Microsoft Update目录中安装这些更新来使其正常工作(NET6):

  • Windows6.1-kb3063858-x64.msu
  • Windows6.1-kb299999926-x644.mmsu
  • win7andw2k8r2

这是Windows管理框架5.1

  • Microsoft Visual C ++ 2015-2019重新分布(X64)-14.29.30135

此外,在某些安装中,我还必须安装PowerShell v7.2.1。

我无法以任何方式在Windows 7 SP1的新安装上运行该应用程序。

Unfortunately Windows 7 SP1 is supported only with Extended Security Updates installed. The same statement also applies to net6.

I managed to get it to work (with net6) by installing those updates from the Microsoft Update Catalog:

  • Windows6.1-KB3063858-x64.msu
  • Windows6.1-KB2999226-x64.msu
  • Win7AndW2K8R2-KB3191566-x64.zip

this is Windows Management Framework 5.1

  • Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.29.30135

In addition, in some installation, I had to also install PowerShell v7.2.1 .

I was unable to run the application on a fresh install of Windows 7 SP1 in any way.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文