ClickOnce 部署需要 Framework 4.5 安装时需要 4.5.2

ClickOnce deployment requires Framework 4.5 required when 4.5.2 is installed

我知道有人问过类似的问题,我也读过,但是我不明白为什么 Framework 4.5.2 会出现这种情况 我已发布 ClickOnce,安装 4.5.2 时需要 .net framework 4.5。我可以在调试模式下 运行 或构建它而不会出现任何问题。有人可以回答为什么会这样吗?我该如何解决这个问题?

我的安装日志

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string} 
Property: [NTProductType] = 1 {int}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Microsoft .NET Framework 4.5 (x86 и x64)', phase   BuildList
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Read string value '4.5.51209'
Setting value '4.5.51209 {string}' for property 'DotNet45Full_TargetVersion'
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full49'
Unable to read registry value
Not setting value for property 'DotNet45FullLangPack_TargetVersion'
The following properties have been set for package 'Microsoft .NET Framework 4.5 (x86 и x64)':
Property: [DotNet45Full_TargetVersion] = 4.5.51209 {string}
Running checks for command 'DotNetFX45\dotNetFx45_Full_x86_x64.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX45\dotNetFx45_Full_x86_x64.exe' is 'Bypass'
Running checks for command 'DotNetFX45\dotNetFx45_Full_setup.exe' 
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet45Full_TargetVersion' and value '4.5.50709': true
Result of checks for command 'DotNetFX45\dotNetFx45_Full_setup.exe' is 'Bypass'
Running checks for command 'DotNetFX45\dotNetFx45LP_Full_x86_x64ru.exe'
Skipping ByPassIf because Property 'DotNet45FullLangPack_TargetVersion' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.0.0': false
Result of running operator 'ValueEqualTo' on property 'ProcessorArchitecture' and value 'IA64': false
Result of checks for command 'DotNetFX45\dotNetFx45LP_Full_x86_x64ru.exe' is 'Install'
'Microsoft .NET Framework 4.5 (x86 и x64)' RunCheck result: Install Needed
 EULA for components 'Microsoft .NET Framework 4.5 (x86 и x64)' was accepted.
Copying files to temporary directory "C:\Users\kdi\AppData\Local\Temp\VSD3A61.tmp\"
Downloading files to "C:\Users\kdi\AppData\Local\Temp\VSD3A61.tmp\"
(02.03.2015 15:03:51) Downloading 'DotNetFX45\dotNetFx45LP_Full_x86_x64ru.exe' from 'http://go.microsoft.com/fwlink/?linkid=249114&clcid=0x419' to 'C:\Users\kdi\AppData\Local\Temp\VSD3A61.tmp\'
Download completed at 02.03.2015 15:03:51
Downloading failed with HRESULT=-2146697210

Here 是我发现安装了 4.5.2 的一种方式

我正在研究 Framework 4.5.1。就我而言,它从未要求我安装框架 4.5。 我认为您必须先卸载它,然后再使用完整包安装。安装时要小心。一切顺利:)

您要安装哪个包?我的意思是说 Visual Studio Professional 还是其他?请安装 Visual Studio Professional。希望对您有所帮助。

Operating System Support

The Visual Studio bootstrapper is not supported on Windows Server 2008 Server Core or Windows Server 2008 R2 Server Core, which provide a low-maintenance server environment with limited functionality. For example, the Server Core installation option only supports the .NET Framework 3.5 Server Core profile, so Visual Studio features that depend on the full .NET Framework cannot run.

参考点击https://msdn.microsoft.com/en-us/library/h4k032e1.aspx

问题已解决。在我的机器上安装了 framework 4.5.2 但它是面向英语的版本。来自 this place I found it out.This link 也帮助了我。 我的应用程序是面向俄语的,所以我必须安装专门针对俄语的框架 4.5.2。这就是为什么我下载了 framework 4.5.2 for developers(multilanguage) 并安装了它。一切正常。 但据我了解,它只会安装系统中使用的语言。例如,未安装德语框架。

希望有一天它能对某人有所帮助;)

此致,德米特里