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

前端 未结 7 1464
-上瘾入骨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:

    \bin\x86\Release
    \bin\x64\Release
    \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.

提交回复
热议问题