为什么.Net Framework 4.7.2“在此操作系统上不受支持”?(Windows 10)

gcxthw6b  于 2023-03-31  发布在  .NET
关注(0)|答案(3)|浏览(1259)

我试图在Windows 10机器上安装.NET 472开发人员包,并得到此错误。

我已经能够在其他Win10电脑上安装这个,也在Win7上。所以它没有任何明显的意义,为什么它声称是“不支持”。
日志中有一些版本检查:
捆绑条件评估为假:
((VersionNT = v6.1 AND ServicePackLevel〉= 1)OR(VersionNT = v6.2 AND NOT(OSInstallationType =“Client”))OR(VersionNT = v6.3)OR
(版本NT = v10.0且操作系统内部版本号〉= 14393)或(版本NT〉v10.0))

  • 但这并没有清楚地表明(对我来说)我需要做什么来解决这个问题。* 可能缺少一些Windows更新?

谢谢
Microsoft有包含此错误的a support page,但没有相关的解决方案:
此操作系统不支持.NET Framework 4.5*.x*/4.6*.x*/4.7*.x*:

  • 对于Windows 7上.NET Framework的失败安装...[所有特定于Win7 /无Win10]*

仅供参考,整个日志文件包含:

[1F70:1E7C][2019-01-09T09:48:04]i001: Burn v3.11.0.1701, Windows v10.0 (Build 10240: Service Pack 0), path: C:\Users\abcdef\AppData\Local\Temp\{D35ACDD2-93C0-4D99-BC39-6A30F2822134}\.cr\NDP472-DevPack-ENU.exe
[1F70:1E7C][2019-01-09T09:48:04]i000: Initializing numeric variable 'IgnorePendingReboot' to value '0'
[1F70:1E7C][2019-01-09T09:48:04]i009: Command Line: '-burn.clean.room=C:\Users\abcdef\Downloads\NDP472-DevPack-ENU.exe -burn.filehandle.attached=420 -burn.filehandle.self=428'
[1F70:1E7C][2019-01-09T09:48:04]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\abcdef\Downloads\NDP472-DevPack-ENU.exe'
[1F70:1E7C][2019-01-09T09:48:04]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\abcdef\Downloads\'
[1F70:1E7C][2019-01-09T09:48:08]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\abcdef\AppData\Local\Temp\Microsoft_.NET_Framework_4.7.2_Developer_Pack_20190109094808.log'
[1F70:1E7C][2019-01-09T09:48:08]i000: Setting string variable 'WixBundleName' to value 'Microsoft .NET Framework 4.7.2 Developer Pack'
[1F70:1E7C][2019-01-09T09:48:08]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[1F70:1DA0][2019-01-09T09:48:08]i000: Setting version variable 'WixBundleFileVersion' to value '4.7.3081.0'
[1F70:1E7C][2019-01-09T09:48:10]i100: Detect begin, 5 packages
[1F70:1E7C][2019-01-09T09:48:10]i000: Registry key not found. Key = 'SOFTWARE\Policies\WiX\Burn'
[1F70:1E7C][2019-01-09T09:48:10]i052: Condition 'NOT NetFxBurnPackageCacheDirectory' evaluates to true.
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting string variable 'NetFxBurnPackageCacheDirectory' to value 'C:\ProgramData\Package Cache'
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting string variable 'netfxfullrefresh_43_CBSValue' to value '1'
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting string variable 'netfxfullrefresh_43_OS_BuildNumber' to value '10240'
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting string variable 'NetFxFullRefresh_InstalledRelease' to value '393295'
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting numeric variable 'NetFxFullRefresh_InstalledReleaseExists' to value 1
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting string variable 'OSBuildNumber' to value '10240'
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting string variable 'OSInstallationType' to value 'Client'
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting numeric variable 'VS2015GenericBootstrapperInstalled' to value 1
[1F70:1E7C][2019-01-09T09:48:10]i000: File search: wfs7886F3974B7A650CE7C1C92244670750, did not find path: C:\ProgramData\Package Cache\NetFxDevpack_FullRefreshISV_4.7.2_461833\packages\dotnetframework\NDP472-KB4054530-x86-x64-AllOS-ENU.exe
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting numeric variable 'NetFxIsvRefreshIsCached' to value 0
[1F70:1E7C][2019-01-09T09:48:10]i000: File search: wfsB2051303457C358B8576A6E6F250B3C4, did not find path: C:\Users\abcdef\Downloads\\packages\dotnetframework\NDP472-KB4054530-x86-x64-AllOS-ENU.exe
[1F70:1E7C][2019-01-09T09:48:10]i000: Setting numeric variable 'NetFxIsvRefreshExists' to value 0
[1F70:1E7C][2019-01-09T09:48:10]i052: Condition 'NetFxIsvRefreshIsCached AND NetFxFullRefresh_InstalledReleaseExists AND NetFxFullRefresh_InstalledRelease >= 461833' evaluates to false.
[1F70:1E7C][2019-01-09T09:48:10]i101: Detected package: netfxfullrefreshisv, state: Absent, cached: None
[1F70:1E7C][2019-01-09T09:48:10]i101: Detected package: netfx_472mtpack.msi, state: Absent, cached: None
[1F70:1E7C][2019-01-09T09:48:10]i101: Detected package: netfx_472mtpacklp.msi, state: Absent, cached: None
[1F70:1E7C][2019-01-09T09:48:10]i101: Detected package: netfxsdk, state: Absent, cached: None
[1F70:1E7C][2019-01-09T09:48:10]i101: Detected package: netfx472_bootstrapper2015.msi, state: Absent, cached: None
[1F70:1E7C][2019-01-09T09:48:10]i052: Condition 'CompatibilityMode = 1' evaluates to true.
[1F70:1E7C][2019-01-09T09:48:11]i052: Condition 'RebootPending = 0 OR IgnorePendingReboot = 1' evaluates to true.
[1F70:1E7C][2019-01-09T09:48:11]i052: Condition 'Privileged' evaluates to true.
[1F70:1E7C][2019-01-09T09:48:11]i052: Condition '((VersionNT = v6.1 AND ServicePackLevel >= 1) OR      (VersionNT = v6.2 AND NOT (OSInstallationType = "Client")) OR      (VersionNT = v6.3) OR      (VersionNT = v10.0 AND OSBuildNumber >= 14393) OR      (VersionNT > v10.0))' evaluates to false.
[1F70:1E7C][2019-01-09T09:48:11]e000: Microsoft .NET Framework 4.7.2 Developer Pack is not supported on this Operating System.
[1F70:1E7C][2019-01-09T09:48:11]e000: Error 0x81f40001: Bundle condition evaluated to false: ((VersionNT = v6.1 AND ServicePackLevel >= 1) OR      (VersionNT = v6.2 AND NOT (OSInstallationType = "Client")) OR      (VersionNT = v6.3) OR      (VersionNT = v10.0 AND OSBuildNumber >= 14393) OR      (VersionNT > v10.0))
[1F70:1E7C][2019-01-09T09:48:11]i199: Detect complete, result: 0x0
nbysray5

nbysray51#

**这个问题显然是因为我的Windows 10特定版本相当旧,并且真的不支持。

我无法100%确认这一点,因为在这台PC上运行the Windows 10 Updater多次失败(所以我放弃了尝试),但几个关键因素表明情况确实如此:

daupos2t

daupos2t2#

好的,我解决了这个问题,从一个较低的版本开始,然后一步一步地更新到一个较新的版本。你可以从here下载最新和以前的版本。
所以在我的例子中,我必须首先安装.NET Framework 4.5.2,然后安装后面的,等等。
操作系统:Windows 8(非8.1*|PS:我讨厌Windows更新 *)

h6my8fg2

h6my8fg23#

试试这个
以管理员身份打开CMD

dism /online /enable-feature /featurename:netfx3 /all
dism /online /enable-feature /featurename:netfx4 /all
dism /online /enable-feature /featurename:WCF-HTTP-Activation /all
dism /online /enable-feature /featurename:WCF-NonHTTP-Activation /all

如果需要重新启动,你就可以开始了。

相关问题