使用MSBuild从命令行进行构建时出现错误APPX1101 [英] Error APPX1101 when building from command line with MSBuild

查看:64
本文介绍了使用MSBuild从命令行进行构建时出现错误APPX1101的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过命令行(MSBuild/t:publish)创建新程序包,对于每个引用的组件,我都会收到以下消息:

Trying to create a new package via the command line (MSBuild /t:publish), I get the following message for each referenced component:

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ AppxPackage \ Microsoft.AppXPackage.Targets(379,9):错误APPX1101:有效负载包含两个或多个文件,这些文件具有相同的目标路径' runtime.doo.zip.dll".源文件:[C:\ Users \ jenkins \ .jenkins \ jobs \ doo-main \ workspace \ doo \ doo.jsproj]
C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ AppxPackage \ Microsoft.AppXPackage.Targets(379,9):错误APPX1101:C:\ Users \ jenkins \ .jenkins \ jobs \ doo-main \ workspace \ Debug \ runtime.doo.zip \ runtime.doo.zip.dll [C:\ Users \ jenkins \ .jenkins \ jobs \ doo-main \ workspace \ doo \ doo.jsproj]
C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ AppxPackage \ Microsoft.AppXPackage.Targets(379,9):错误APPX1101:C:\ Users \ jenkins \ .jenkins \ jobs \ doo-main \ workspace \ Release \ runtime.doo.zip \ runtime.doo.zip.dll [C:\ Users \ jenkins \ .jenkins \ jobs \ doo-main \ workspace \ doo \ doo.jsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(379,9): error APPX1101: Payload contains two or more files with the same destination path 'runtime.doo.zip.dll'. Source files:  [C:\Users\jenkins\.jenkins\jobs\doo-main\workspace\doo\doo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(379,9): error APPX1101: C:\Users\jenkins\.jenkins\jobs\doo-main\workspace\Debug\runtime.doo.zip\runtime.doo.zip.dll [C:\Users\jenkins\.jenkins\jobs\doo-main\workspace\doo\doo.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(379,9): error APPX1101: C:\Users\jenkins\.jenkins\jobs\doo-main\workspace\Release\runtime.doo.zip\runtime.doo.zip.dll [C:\Users\jenkins\.jenkins\jobs\doo-main\workspace\doo\doo.jsproj]

它显然试图将每个dll的Release和Debug版本打包到软件包中.奇怪的是,可以通过MSVC IDE构建程序包.

It apparently tries to package both Release and Debug versions of each dll into the package. The strange thing is that building the package via the MSVC IDE, it works.

推荐答案

马库斯,

我们找到的错误消息是:错误APPX1101:有效负载包含两个或多个文件,这些文件具有相同的目标路径"runtime.doo.zip.dll".

We can found the error message:error APPX1101: Payload contains two or more files with the same destination path 'runtime.doo.zip.dll'.

我想当库和应用程序项目都有两个dll副本时,就会发生这种情况.

I guess it occurs when there are two copies of dlls for both library and application project.

如果我们运行MSBuild / t : clean / t : build / t : 在命令行中发布,该错误仍然会发生吗?

If we run MSBuild /t:clean /t:build /t:publish in command line, will the error still occur?

最诚挚的问候,

Best regards,


这篇关于使用MSBuild从命令行进行构建时出现错误APPX1101的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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