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

时间:2015-03-02 07:47:09

标签: c# .net .net-4.5 clickonce

我知道类似的问题已被提出,我已经阅读过了,但是我无法理解为什么会出现在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\Full\1049'
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安装的方式

2 个答案:

答案 0 :(得分:5)

问题已经解决了。在我的机器上安装了框架4.5.2,但它是面向英语的版本。从this place我发现了。这link也帮助了我。 我的应用程序是面向俄语的,所以我不得不为俄语安装特殊的框架4.5.2。这就是我为开发人员(多语言)下载框架4.5.2并安装它的原因。一切正常。 但据我所知,它只会安装系统中使用的语言。例如,没有安装deutch语言的框架。

希望有一天能帮助别人;)

真诚的,德米特里

答案 1 :(得分:0)

我正在开发Framework 4.5.1。在我的情况下,它从未要求我安装框架4.5。 我想你必须首先卸载它然后再用完整包安装。安装时要小心。一切顺利:)

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

  

操作系统支持

     

Windows Server 2008不支持Visual Studio引导程序   服务器核心或Windows Server 2008 R2服务器核心,提供   具有有限功能的低维护服务器环境。对于   例如,Server Core安装选项仅支持.NET   Framework 3.5 Server Core配置文件,因此Visual Studio具有这一功能   依赖于完整的.NET Framework无法运行。

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