构建项目和发布之间的区别 [英] difference between build project and publish

查看:114
本文介绍了构建项目和发布之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个clickonce项目,但我遇到了一些问题。

I develop a clickonce project and I have some problem.

当我在文件coapp.exe中构建项目时。清单我有:

When I build project in the file coapp.exe. manifest I have:

<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1">
 <asmv1:assemblyIdentity name="app.exe" version="5.1.6.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
 <description asmv2:iconFile="app.ico" xmlns="urn:schemas-microsoft-com:asm.v1" />
 <application />
 <entryPoint>
 <assemblyIdentity name="app" version="5.1.6.1" publicKeyToken="F6EA80B788ACD5C1" language="neutral" processorArchitecture="x86" />
 <commandLine file="app.exe" parameters="" />
 </entryPoint>

没关系:处理器架构是"x86"

It is ok: the processor architecture is "x86"

现在我做"发布"并在发布文件int app.exe。清单我得到

and now I do "publish" and in publishing files int app.exe. manifest I gets

 


<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1">
 <asmv1:assemblyIdentity name="app.exe" version="5.1.6.1" publicKeyToken="f6ea80b788acd5c1" language="neutral" processorArchitecture="msil" type="win32" />
 <description asmv2:iconFile="app.ico" xmlns="urn:schemas-microsoft-com:asm.v1" />
 <application />
 <entryPoint>
 <assemblyIdentity name="app" version="5.1.6.1" publicKeyToken="F6EA80B788ACD5C1" language="neutral" processorArchitecture="msil" />
 <commandLine file="app.exe" parameters="" />
 </entryPoint>

推荐答案

嗨grzelix,

Hi grzelix,

欢迎来到MSDN论坛。

Welcome to the MSDN Forum.

您的清单似乎是正确的。 您收到错误消息了吗?或者你可以把这个日志放在这里,以便我们可以帮助你理解这个问题。

It seems your manifest is right. Have you recieved the error message? Or could you please put the log here so that we can help you and make sense of the issue.

你能否为我们清楚你的问题?

Could you please clear about your questions for us?

最好的问候

 


这篇关于构建项目和发布之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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