在Windows 7中发布便携式和独立的.NET应用程序
我需要发布一个:
- 安装:
- 如果未安装在使用中的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:
- must not be installed
- 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.
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.
What could be the problem? How should I publish the application so that I don't need to install anything?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,仅安装了扩展安全更新的Windows 7 SP1。同一陈述也适用于Net6。
我设法通过从Microsoft Update目录中安装这些更新来使其正常工作(NET6):
此外,在某些安装中,我还必须安装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:
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.