[英]I want to sign output DLLs of my project but those projects could work on different machines
I want to sign output DLLs of my projects. 我想签署我的项目的输出DLL。
I have created .pfx file on my machine (Project properties.Signing.Sign the assembly with Visual studio 2008 on .NET 3.5 CE
) and able to sign DLLs but when I push my code to repository (as every project has .pfx file is included ) but my server is not able to build project it gives error as 我在我的机器上创建了.pfx文件(Project properties.Signing.Sign with Visual Studio 2008 on
.NET 3.5 CE
)并且能够签署DLL但是当我将我的代码推送到存储库时(因为每个项目都有.pfx文件是包括)但我的服务器无法构建项目它给出错误
[“Import Key file”]
[“导入密钥文件”]
I am getting same error when I tried to run this project on different machine. 当我尝试在不同的机器上运行此项目时,我收到同样的错误。
How can I create project with .pfx signing which can run on every developer machine without importing .pfx file. 如何使用.pfx签名创建项目,该签名可以在每个开发人员计算机上运行而无需导入.pfx文件。
How can I create project with .pfx signing which can run on every developer machine without importing .pfx file.
如何使用.pfx签名创建项目,该签名可以在每个开发人员计算机上运行而无需导入.pfx文件。
Visual Studio allows you to perform both ClickOnce and Strong Name signing by specifying a file path to the .PFX file (ideally within your solution hierarchy or somewhere common to all DEV/CI machines) without requiring you to import the certificate into the Windows Certificate Store beforehand. Visual Studio允许您通过指定.PFX文件的文件路径(理想情况下在解决方案层次结构中或所有DEV / CI计算机通用的某个位置)执行ClickOnce和强名称签名, 而无需将证书导入Windows证书存储区预先。
On the Signing page: 在签名页面上:
a) for ClickOnce, tick Sign the ClickOnce manifests , choose Select From File... and select your projects .PFX a)对于ClickOnce,勾选签署ClickOnce清单 ,选择Select From File ...并选择您的项目.PFX
b) for Strong Naming, tick Sign the Assembly then click Choose a strong name key file , then click Browse and select your .PFX b)对于强命名,勾选签署程序集,然后单击选择强名称密钥文件 ,然后单击浏览并选择.PFX
It's advisable to put the .PFX into your solution's hierarachy and use relative paths. 建议将.PFX放入解决方案的层次结构并使用相对路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.