软件包'Microsoft.PortableLibrary.TargetingPack.Msi,version = 15.0.26228.0'无法安装

时间:2017-08-02 07:45:26

标签: c# asp.net visual-studio xamarin xamarin.forms

我一直在尝试通过VS2017_community安装程序安装ASP.NET。 我也尝试过安装Xamarin和WPF,但无论工作负载需要Microsoft.PortableLibrary.TargetingPack,整个安装都会失败。我无法在任何论坛上找到任何解决方案,因此这篇文章。社区可以看看吗?我正在附加日志文件。

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

Incomplete workloads
    ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)

Incomplete components
    .NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.0.26208.0)
    ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
    Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26208.0)
    Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26419.1)
    SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,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.PortableLibrary.TargetingPack.Msi,version=15.0.26228.0' failed to install.
    Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.PortableLibrary.TargetingPack.Msi;PackageAction=Install;ReturnCode=1402
    Impacted workloads
        ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)
    Impacted components
        .NET Portable Library targeting pack (Microsoft.VisualStudio.Component.PortableLibrary,version=15.0.26208.0)
        ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
        Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26208.0)
        Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26419.1)
        SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26208.0)
    Log
        C:\Users\Uzair3D\AppData\Local\Temp\dd_setup_20170802114400_002_Microsoft.PortableLibrary.TargetingPack.Msi.log
    Details
        MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.PortableLibrary.TargetingPack.Msi,version=15.0.26228.0\portablelibrary_dtp_sfx.msi, Properties:  REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1  MSIFASTINSTALL="7"  VSEXTUI="1"  EXTUI="1" 
        Return code: 1402
        Return code details: Could not open key: UNKNOWN\Components\529A8C9116D73655E88ABB96B8E684D0\62168959317C82F33B0E7FC7B549AFBF.   Verify that you have sufficient access to that key, or contact your support personnel.

image

1 个答案:

答案 0 :(得分:0)

我可以使用以下工具MicrosoftProgram_Install_and_Uninstall.meta.diagcab解决问题。

步骤:

  1. 安装包时出现问题。

  2. 从列表中选择包名称

  3. 解决方案卸载包。

  4. 按照以下步骤尝试再次安装。