none
UWP创建应用安装包时报很多错 : 负载包含两个或更多具有相同目标路径 RRS feed

  • 问题

  •  
    错误 负载包含两个或更多具有相同目标路径“System.Runtime.InteropServices.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.runtime.interopservices\4.3.0\lib\netcore50\System.Runtime.InteropServices.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.runtime.interopservices\4.3.0\runtimes\aot\lib\netcore50\System.Runtime.InteropServices.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Dynamic.Runtime.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\system.dynamic.runtime\4.3.0\lib\netcore50\System.Dynamic.Runtime.dll
    C:\Users\Administrator\.nuget\packages\system.dynamic.runtime\4.3.0\runtimes\aot\lib\netcore50\System.Dynamic.Runtime.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Reflection.DispatchProxy.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.reflection.dispatchproxy\4.0.1\lib\netstandard1.3\System.Reflection.DispatchProxy.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.reflection.dispatchproxy\4.0.1\runtimes\aot\lib\netcore50\System.Reflection.DispatchProxy.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Runtime.Serialization.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.Runtime.Serialization.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.Runtime.Serialization.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Threading.Timer.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.threading.timer\4.3.0\lib\netcore50\System.Threading.Timer.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.threading.timer\4.3.0\runtimes\aot\lib\netcore50\System.Threading.Timer.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Runtime.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.runtime\4.3.0\lib\netcore50\System.Runtime.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.runtime\4.3.0\runtimes\aot\lib\netcore50\System.Runtime.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Reflection.TypeExtensions.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\system.reflection.typeextensions\4.3.0\lib\netcore50\System.Reflection.TypeExtensions.dll
    C:\Users\Administrator\.nuget\packages\system.reflection.typeextensions\4.3.0\runtimes\aot\lib\netcore50\System.Reflection.TypeExtensions.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Xml.XmlSerializer.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.xml.xmlserializer\4.0.11\lib\netcore50\System.Xml.XmlSerializer.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.xml.xmlserializer\4.0.11\runtimes\aot\lib\netcore50\System.Xml.XmlSerializer.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.IO.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.io\4.3.0\lib\netcore50\System.IO.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.io\4.3.0\runtimes\aot\lib\netcore50\System.IO.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Diagnostics.Tools.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.diagnostics.tools\4.3.0\lib\netcore50\System.Diagnostics.Tools.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.diagnostics.tools\4.3.0\runtimes\aot\lib\netcore50\System.Diagnostics.Tools.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Net.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.Net.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.Net.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Numerics.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.Numerics.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.Numerics.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Reflection.Primitives.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.reflection.primitives\4.3.0\lib\netcore50\System.Reflection.Primitives.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.reflection.primitives\4.3.0\runtimes\aot\lib\netcore50\System.Reflection.Primitives.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Runtime.Handles.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.runtime.handles\4.3.0\lib\netstandard1.3\System.Runtime.Handles.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.runtime.handles\4.3.0\runtimes\aot\lib\netcore50\System.Runtime.Handles.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.ComponentModel.DataAnnotations.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.ComponentModel.DataAnnotations.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.ComponentModel.DataAnnotations.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Reflection.Extensions.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.reflection.extensions\4.3.0\lib\netcore50\System.Reflection.Extensions.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.reflection.extensions\4.3.0\runtimes\aot\lib\netcore50\System.Reflection.Extensions.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Threading.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\system.threading\4.3.0\lib\netcore50\System.Threading.dll
    C:\Users\Administrator\.nuget\packages\system.threading\4.3.0\runtimes\aot\lib\netcore50\System.Threading.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Private.Uri.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.win7.system.private.uri\4.3.0\runtimes\win\lib\netcore50\System.Private.Uri.dll
    C:\Users\Administrator\.nuget\packages\runtime.win7.system.private.uri\4.3.0\runtimes\aot\lib\netcore50\System.Private.Uri.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Xml.Serialization.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.Xml.Serialization.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.Xml.Serialization.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Globalization.Calendars.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.globalization.calendars\4.3.0\lib\netcore50\System.Globalization.Calendars.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.globalization.calendars\4.3.0\runtimes\aot\lib\netcore50\System.Globalization.Calendars.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.ServiceModel.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.ServiceModel.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.ServiceModel.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Text.Encoding.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.text.encoding\4.3.0\lib\netcore50\System.Text.Encoding.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.text.encoding\4.3.0\runtimes\aot\lib\netcore50\System.Text.Encoding.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Runtime.InteropServices.WindowsRuntime.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.runtime.interopservices.windowsruntime\4.0.1\lib\netcore50\System.Runtime.InteropServices.WindowsRuntime.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.runtime.interopservices.windowsruntime\4.0.1\runtimes\aot\lib\netcore50\System.Runtime.InteropServices.WindowsRuntime.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Collections.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.collections\4.3.0\lib\netcore50\System.Collections.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.collections\4.3.0\runtimes\aot\lib\netcore50\System.Collections.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Diagnostics.Debug.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.win.system.diagnostics.debug\4.3.0\runtimes\win\lib\netcore50\System.Diagnostics.Debug.dll
    C:\Users\Administrator\.nuget\packages\runtime.win.system.diagnostics.debug\4.3.0\runtimes\aot\lib\netcore50\System.Diagnostics.Debug.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“clrcompression.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.win7-x86.runtime.native.system.io.compression\4.3.0\runtimes\win7-x86\native\clrcompression.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86-aot.runtime.native.system.io.compression\4.0.1\runtimes\win10-x86-aot\lib\netcore50\clrcompression.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Diagnostics.Contracts.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\system.diagnostics.contracts\4.3.0\lib\netcore50\System.Diagnostics.Contracts.dll
    C:\Users\Administrator\.nuget\packages\system.diagnostics.contracts\4.3.0\runtimes\aot\lib\netcore50\System.Diagnostics.Contracts.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Reflection.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.reflection\4.3.0\lib\netcore50\System.Reflection.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.reflection\4.3.0\runtimes\aot\lib\netcore50\System.Reflection.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Diagnostics.StackTrace.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.diagnostics.stacktrace\4.0.2\lib\netstandard1.3\System.Diagnostics.StackTrace.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.diagnostics.stacktrace\4.0.2\runtimes\aot\lib\netcore50\System.Diagnostics.StackTrace.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Threading.Tasks.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.threading.tasks\4.3.0\lib\netcore50\System.Threading.Tasks.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.threading.tasks\4.3.0\runtimes\aot\lib\netcore50\System.Threading.Tasks.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Text.Encoding.Extensions.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.text.encoding.extensions\4.3.0\lib\netcore50\System.Text.Encoding.Extensions.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.text.encoding.extensions\4.3.0\runtimes\aot\lib\netcore50\System.Text.Encoding.Extensions.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.AppContext.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\system.appcontext\4.3.0\lib\netcore50\System.AppContext.dll
    C:\Users\Administrator\.nuget\packages\system.appcontext\4.3.0\runtimes\aot\lib\netcore50\System.AppContext.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Private.DataContractSerialization.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.private.datacontractserialization\4.1.2\lib\netstandard1.3\System.Private.DataContractSerialization.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\system.private.datacontractserialization\4.1.2\runtimes\aot\lib\netcore50\System.Private.DataContractSerialization.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Core.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.Core.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.Core.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Globalization.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.globalization\4.3.0\lib\netcore50\System.Globalization.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.globalization\4.3.0\runtimes\aot\lib\netcore50\System.Globalization.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Diagnostics.Tracing.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.diagnostics.tracing\4.3.0\lib\netcore50\System.Diagnostics.Tracing.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.diagnostics.tracing\4.3.0\runtimes\aot\lib\netcore50\System.Diagnostics.Tracing.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.ServiceModel.Web.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.ServiceModel.Web.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.ServiceModel.Web.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Xml.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.Xml.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.Xml.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\lib\netcore50\System.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\System.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Linq.Expressions.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\system.linq.expressions\4.3.0\lib\netcore50\System.Linq.Expressions.dll
    C:\Users\Administrator\.nuget\packages\system.linq.expressions\4.3.0\runtimes\aot\lib\netcore50\System.Linq.Expressions.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“mscorlib.dll”的文件。源文件: 
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win7-x86.microsoft.netcore.runtime.coreclr\1.0.2\runtimes\win7-x86\lib\netstandard1.0\mscorlib.dll
    C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.netcore.portable.compatibility\1.0.2\runtimes\aot\lib\netcore50\mscorlib.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Resources.ResourceManager.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.any.system.resources.resourcemanager\4.3.0\lib\netcore50\System.Resources.ResourceManager.dll
    C:\Users\Administrator\.nuget\packages\runtime.aot.system.resources.resourcemanager\4.3.0\runtimes\aot\lib\netcore50\System.Resources.ResourceManager.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Runtime.WindowsRuntime.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\system.runtime.windowsruntime\4.3.0\runtimes\win8\lib\netstandard1.3\System.Runtime.WindowsRuntime.dll
    C:\Users\Administrator\.nuget\packages\system.runtime.windowsruntime\4.3.0\runtimes\win8-aot\lib\netcore50\System.Runtime.WindowsRuntime.dll SkyDy
    错误 负载包含两个或更多具有相同目标路径“System.Runtime.Extensions.dll”的文件。源文件: 
    C:\Users\Administrator\.nuget\packages\runtime.win.system.runtime.extensions\4.3.0\runtimes\win\lib\netcore50\System.Runtime.Extensions.dll
    C:\Users\Administrator\.nuget\packages\runtime.win.system.runtime.extensions\4.3.0\runtimes\aot\lib\netcore50\System.Runtime.Extensions.dll SkyDy
    2019年11月15日 7:02

全部回复

  • 你好,

    出现这种结果的原因很多, 通常我们可以更新 nuget package 到最新版本,清理当前工程(包含删除 bin obj 文件夹),然后尝试修改uwp 项目的目标版本和最低版本。

    请尝试以上操作,然后告诉我结果,我会继续跟进你的问题。

    Thanks,

    Nico Zhu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年11月15日 8:31