简体   繁体   English

我想签署我的项目的输出DLL,但这些项目可以在不同的机器上工作

[英]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.

相关问题 当我在Visual Studio中创建项目引用时,我是否必须在部署时包含这些项目的DLL? - When I make a project reference in Visual Studio, do I then have to include the DLLs for those projects when I deploy? 那些部署在不同计算机上的应用程序的MSMQ - MSMQ for those application which are deployed on different machines 如何在一个项目中创建不同的DLL? - How can I create different DLLs in one project? 如何选择与项目相关的IKVM dll子集? - How do I choose the subset of IKVM dlls that are relevant to my project? 无法加载文件或程序集(我的项目的 dll 之一,存在) - Could not load file or assembly (one of my project's dlls, which exists) 在不同的机器上生成并签署证书 C# - Generate and sign certificate in different machines C# 如何删除项目中的Windows.dll参考? (我知道如何删除普通的dll,只是Windows无法正常工作) - How can I remove windows.dll reference in my project? (I know how to remove normal dlls, just the windows doesn't work ) Visual Studio 一个带有多个 dll 作为输出的项目? - Visual studio one project with several dlls as output? 项目输出目录中缺少DLL - DLLs Missing From Project Output Directory 具有2个具有相同名称的不同DLL的项目 - Project with 2 different DLLs that have the same name
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM