Office 解决方案的部署清单
部署清单是一个 XML 文件,描述 Office 解决方案的部署设置,并标识当前的应用程序版本。
Visual Studio 中的 Office 开发使用 ClickOnce 部署清单参考中定义的 ClickOnce 部署清单架构。
备注
Office解决方案的部署清单文件标识当前版本和其他部署设置。 该文件引用应用程序清单,应用程序清单描述解决方案的当前版本以及解决方案中包含的所有文件。
文件名语法
部署清单文件名必须以 .vsto 扩展名结束。 尽管部署清单文件是标准的 ClickOnce 部署清单,但扩展名并不相同,这是为了使 Visual Studio Tools for Office 运行时可以处理这种文件。
示例
下面的代码示例演示 Visual Studio Tools for Office 解决方案的部署清单。
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly
xsi:schemaLocation=
"urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd"
manifestVersion="1.0"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1"
xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"
xmlns="urn:schemas-microsoft-com:asm.v2"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity
name="ContosoOfficeSolutions.vsto"
version="1.0.0.0"
publicKeyToken="25d0f3ca94156f1f"
language="neutral"
processorArchitecture="msil"
xmlns="urn:schemas-microsoft-com:asm.v1" />
<description
asmv2:publisher="Microsoft"
asmv2:product="ContosoOfficeSolutions"
xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="false" mapFileExtensions="true" />
<dependency>
<dependentAssembly
dependencyType="install"
codebase="ContosoOfficeSolutions.dll.manifest"
size="13545">
<assemblyIdentity
name="ContosoOfficeSolutions.dll"
version="1.0.0.0"
publicKeyToken="25d0f3ca94156f1f"
language="neutral"
processorArchitecture="msil"
type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm=
"urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>PoY</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<publisherIdentity name="name" issuerKeyHash="003" />
<Signature
Id="StrongNameSignature"
xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm=
"http://www.w3.org/2001/10/xml-exc-c14n#" />
<SignatureMethod Algorithm=
"http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform Algorithm=
"http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm=
"http://www.w3.org/2001/10/xml-exc-c14n#" />
</Transforms>
<DigestMethod Algorithm=
"http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>5oz</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>nNG</SignatureValue>
<KeyInfo Id="StrongNameKeyInfo">
<KeyValue>
<RSAKeyValue>
<Modulus>ufI</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue>
</KeyValue>
<msrel:RelData
xmlns:msrel=
"https://schemas.microsoft.com/windows/rel/2005/reldata">
<r:license
xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS"
xmlns:as=
"https://schemas.microsoft.com/windows/pki/2005/Authenticode">
<r:grant>
<as:ManifestInformation
Hash="099"
Description=""
Url="">
<as:assemblyIdentity
name="ContosoOfficeSolutions.vsto"
version="1.0.0.0"
publicKeyToken="25d0f3ca94156f1f"
language="neutral"
processorArchitecture="msil"
xmlns="urn:schemas-microsoft-com:asm.v1" />
</as:ManifestInformation>
<as:SignedBy />
<as:AuthenticodePublisher>
<as:X509SubjectName>CN=DDNET\BAAdmin</as:X509SubjectName>
</as:AuthenticodePublisher>
</r:grant>
<r:issuer>
<Signature
Id="AuthenticodeSignature"
xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<SignatureMethod
Algorithm=
"http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform Algorithm=
"http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm=
"http://www.w3.org/2001/10/xml-exc-c14n#" />
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>iAd</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>HL9</SignatureValue>
<KeyInfo>
<KeyValue>
<RSAKeyValue>
<Modulus>ufI</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue>
</KeyValue>
<X509Data>
<X509Certificate>MII</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</r:issuer>
</r:license>
</msrel:RelData>
</KeyInfo>
</Signature>
</asmv1:assembly>