为什么 Dot Net Framework 4.5.2 在我的 Visual Studio 2017 中不可用? [英] Why is Dot Net Framework 4.5.2 not available in my Visual Studio 2017?

查看:62
本文介绍了为什么 Dot Net Framework 4.5.2 在我的 Visual Studio 2017 中不可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到 VS2017 并卸载了 VS2015.但是,当我在 VS2015 Framework 4.5.2 中打开旧项目时,没有显示为一个选项.

当我尝试安装 Framework 4.5.2 时,我收到以下消息

带有

I recently upgraded to VS2017 and uninstalled VS2015. However when I open my old projects in VS2015 Framework 4.5.2 does not show as an option.

When I attempted to install Framework 4.5.2 I receive the following message

with link to Microsoft support which states that no action is necessary.

I am running Windows 7 Ultimate N service Pack 1

[Update]

After trying to remove and restore framework 4.5.2 I tried to repair. The repair attempt ended with the message

Setup operation failed

Here is the log

The product failed to install the listed workloads and components due to one or more package failures.

Incomplete workloads
    Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.26228.0)

Incomplete components
    Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=15.0.26208.0)

You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.

Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.

Package 'Microsoft.Net.4.6.FullRedist,version=4.6.81.6' failed to repair.
    Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.4.6.FullRedist;PackageAction=Repair;ReturnCode=5100
    Impacted workloads
        Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.26228.0)
    Impacted components
        Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=15.0.26208.0)
    Log
        C:\Users\kirstenAdmin\AppData\Local\Temp\dd_setup_20170711130222_002_Microsoft.Net.4.6.FullRedist.log
    Details
        Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.6.FullRedist,version=4.6.81.6\dotNetFx-x86-x64-AllOS-ENU.exe" /q /norestart /repair /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\kirstenAdmin\AppData\Local\Temp\dd_setup_20170711130222_002_Microsoft.Net.4.6.FullRedist.log"
        Return code: 5100
        Return code details: Asia

I don't know if it is relevant but I did use the following installer some time ago to get rid of VS2015 I think from this link

I just noticed that VS2015 was showing in Programs and Features, so I tried un-installing VS2015. I came up with this message However I don't think I ever installed the "Secondary Installer"

解决方案

Go in to the "Visual Studio 2017 Installer" (it should be a shortcut in your Start Menu) and click "Modify". At the top, select "Individual Components". Make sure that the ".NET Framework 4.5.2 targeting pack" is checked. If it isn't, select it, and click "Modify" at the bottom right.

这篇关于为什么 Dot Net Framework 4.5.2 在我的 Visual Studio 2017 中不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆