简体   繁体   English

在某些计算机上从命令行执行C#msbuild执行会跳过签名阶段WP8

[英]c# msbuild execution from command line on some computersskips the signing phase WP8

I am currently writing a Windows app that builds and signs WP8 projects. 我目前正在编写一个Windows应用程序,该程序可以构建和签名WP8项目。 msbuild command is executed as a program inside my console application which is written in C#. msbuild命令在我的控制台应用程序中以C#编写的程序形式执行。 I am running this command : 我正在运行以下命令:

msbuild /p:SignXap=true /p:SignKeyFile=path\\key.pfx target.csproj (password is extracted) msbuild / p:SignXap = true /p:SignKeyFile=path\\key.pfx target.csproj(提取密码)

It executes well on my computer but on another computer it skips the signing phase. 它在我的计算机上执行良好,但是在另一台计算机上,它跳过了签名阶段。 Basically everything executes as usual but just skips the signing like it wasnt defined. 基本上,所有内容都照常执行,但只是跳过未定义的签名。 There are no error messages and since these outputs are produced by msbuild.exe there is nothing much that I can do. 没有错误消息,并且由于这些输出是由msbuild.exe生成的,因此我无能为力。

Certificate is added to the store and app has admin privelages. 证书已添加到商店,并且应用具有管理员权限。

What can be different between two machines that it just skips the signing phase without complaining? 两台机器之间有什么不同,它只是跳过签名阶段而不会抱怨? Does anyone faced a similar problem or have an idea? 是否有人遇到类似问题或有想法?

Thank you!! 谢谢!!

You could cross check on the following requirements for company apps build as in the link http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn168929(v=vs.105).aspx#BKMK_msbuild 您可以交叉检查对公司应用程序构建的以下要求,如链接http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn168929(v=vs.105).aspx#BKMK_msbuild

Command-line precompilation and signing are available only for apps that target Windows Phone 8. Command-line precompilation and signing for Windows Phone 8 projects require Visual Studio 2012 Update 2. The command-line properties described in this section are not included in the Windows Phone SDK 8.0. 命令行预编译和签名仅适用于以Windows Phone 8为目标的应用程序。Windows Phone 8项目的命令行预编译和签名需要Visual Studio 2012 Update2。Windows中不包含本节中描述的命令行属性。电话SDK 8.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM