Payload contains two or more files with the same destination path 'System.Diagnostics.Tools.dll'

前端 未结 7 1481
-上瘾入骨i
-上瘾入骨i 2021-02-12 18:38

After I add 2 libraries from Nuget to my project I receive follow error:

Error       Payload contains two or more files with the same destination path \'System.D         


        
相关标签:
7条回答
  • 2021-02-12 19:06

    You may try the following in VS2019

    1. Update Microsoft.NETCore.UniversalWindowsPlatform using Tools-->Nuget Package Manager--> Manage Nuget Package for Solutions

    2. Tools-->Nuget Package Manager--> Package Manager Settings-->Clear All Nuget Cache(s)

    3. Delete the files under:

    <package Name>\bin\x86\Release
    <package Name>\bin\x64\Release
    <package Name>\bin\Arm\Release
    
    1. Build--> Clean Solution for each version, Release x86 etc

    Finally worked for me. If this still fails, building a package using VS2017 may work.

    0 讨论(0)
提交回复
热议问题