C#cmdlet用于创建应用程序和部署清单文件 [英] C# cmdlet to create Application and Deployment manifest files

查看:58
本文介绍了C#cmdlet用于创建应用程序和部署清单文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为clickonce应用程序创建应用程序和部署清单文件。我编写了一个C#cmdlet,使用mage执行以下操作

I'm trying to create application and deployment manifest files for a clickonce application. I wrote a C# cmdlet that does the following using mage

我使用ProcesssStartInfo在C#cmdlet中调用mage命令1.创建应用程序清单文件 - 已成功创建。 2.签署应用程序清单文件 - 成功3.创建部署清单文件 - 似乎没问题,但我没有看到创建的文件
也没有看到错误。 4.签署部署清单文件 - 没有错误说找不到文件。

I call mage command inside the C# cmdlet with ProcesssStartInfo 1. Create application manifest file - successfully created. 2. Sign the application manifest file - success 3. Create Deployment Manifest file - It seems to be OK but I do not see the file created nor do I see errors. 4. Sign deployment manifest file - No Errors saying did not find the file.

我的问题是为什么我没有看到部署清单文件,即使它似乎已经创建了文件但是没有证据。签署部署清单文件的下一步也不会失败。事实上我试图签署该文件,它给了我一个错误
如预期的那样说该文件不存在

My question is why am I not seeing the deployment manifest file even though it seems to have created the file but with no evidence. The next step signing the deployment manifest file also does not fail. In fact I tried to sign the file, it gave me an error as expected saying the file does not exist

我复制了相同的代码并运行它成功创建的控制台应用程序部署清单文件并对其进行了签名。

I copied the same code and ran as console application it successfully created the deployment manifest file and signed it too.

是否有人遇到类似的问题,部署清单文件未创建但同时没有警告或错误?

Does anyone have similar problem where the deployment manifest file does not get created but no warnings or errors at the same time?

推荐答案

Hi biprism,

Hi biprism,

由于您的问题与ClickOnce更相关应用程序,我将
将此主题移至更相关的论坛。

参考
https://social.msdn.microsoft.com/Forums/en-US/home?forum=winformssetup&filter=alltypes&sort=lastpostdesc

感谢您的理解和支持。

最好的问候,

Neda Zhang

Neda Zhang


这篇关于C#cmdlet用于创建应用程序和部署清单文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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