ClickOnce和mageUI添加自定义文件夹问题 [英] ClickOnce and mageUI adding custom file folder problems

查看:477
本文介绍了ClickOnce和mageUI添加自定义文件夹问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做什么:通过VS或者msbuild(无论如何)发布.Net 3.5应用程序,现在我需要插入到已发布的应用程序单独的目录(Modules - 未添加为项目的参考 - 我们的项目架构不允许这个)。所以我将文件夹复制到发布的位置,然后运行mageUI.exe选择应用程序清单,然后问题开始。当我按下populate按钮它也添加隐藏目录?所以我删除目录,之后我想保存的清单文件我得到
警告MSB3110:装配'NAME.Shell.application.deploy'具有不匹配的身份'NAME.Shell.application',预期的文件名: 'NAME.Shell.application.application'。

What I do: Publishing .Net 3.5 application via VS, or msbuild (whatever), and now I need to insert to the published application separate directory (Modules - not added as a reference to the project - our project architecture does not allow this). So I'm copying the folder to published location then runs mageUI.exe select the application manifest and then the problems starts. As I press the populate button it's adding also hidden directory? So I remove the directory, after I want to save the manifest file I get the "Warning MSB3110: Assembly 'NAME.Shell.application.deploy' has mismatched identity 'NAME.Shell.application', expected file name: 'NAME.Shell.application.application'".

根据 http://smartclient.codeplex.com/Project/Download/FileDownload.aspx?DownloadId=5060 应该很容易为1 -2-3,但不是。

Did you have the same problems, according to http://smartclient.codeplex.com/Project/Download/FileDownload.aspx?DownloadId=5060 it should be easy as 1-2-3 but it's not.

推荐答案

讽刺的是,我正在更新用于ClickOnce部署的SCSF文档。 NET 4.0,现在我知道究竟是什么问题了。

On the irony side, I am currently updating the SCSF documentation for ClickOnce deployment for .NET 4.0, and now I know exactly what the problem it.

首先,您要发布到磁盘位置,而不是直接发布到Web服务器。所以这样做,然后将您要添加到部署的dll复制到具有应用程序清单(.manifest)的版本文件夹中。重命名他们自己 - 只需添加.deploy最后。

First, you want to publish to a disk location, not directly to the webserver. So do that, and then copy the dll's you want to add to the deployment into the version folder with the application manifest (.manifest). Rename them yourself -- just add .deploy on the end.

启动MageUI并打开该文件夹中的应用程序清单,然后取消选中添加.deploy到文件名。点击填充。

Bring up MageUI and open the application manifest in that folder, then uncheck the box that says "add .deploy to the file names". Click "populate".

然后从列表中删除部署清单;它叫做appname.application。您不希望将其包含在清单的文件列表中。

Then remove the deployment manifest from the list; it's called something like appname.application. You don't want it to be included in the manifest's list of files.

现在,您可以保存并签署应用程序清单。然后在不退出mageUI的情况下,打开根文件夹中的部署清单(版本文件夹中的)。单击应用程序参考,然后单击选择清单。下载到您刚刚签名的版本文件夹中的应用程序清单并选择它。然后只需保存并签署部署清单。它在其中放置相对路径,因此如果您修改版本文件夹中的.application文件,则在部署时它将无法正常工作。

Now you can save and sign the application manifest. Then without exiting mageUI, open the deployment manifest that is in the root folder (NOT the one in the version folder). Click on "Application Reference", then click Select Manifest. Dig down to the application manifest in the version folder that you just signed and select it. Then just save and sign the deployment manifest. It puts a relative path in there, so if you modify the .application file in the version folder, it won't work right when deployed.

现在从根文件夹中取出该应用程序文件,并将其复制到版本文件夹(替换那个文件夹),以便您拥有该版本的正确副本,以防万一你以后需要它

Now take that .application file from the root folder and copy it into the version folder (replacing the one that's there) so you have the right copy for that version in case you need it later.

现在将整个shebang复制到网络服务器。它应该工作。

Now copy the whole shebang out to the webserver. it should work.

这篇关于ClickOnce和mageUI添加自定义文件夹问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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