大量项目的强名称重用
我正在使用 Biztalk 2010 和 VS2008 SSIS 包的大型集成平台工作。每个界面都存储在一个团队项目 (TFS2010) 中。在团队项目的根部,每个接口都使用其唯一名称创建,并在下面创建了默认的基本分支计划结构(使用 Main、Dev、Release + 分支(如果适用),请参阅 ALM Rangers 的 TFS 分支指南)。
问题是每个接口都需要一个强名称密钥,因为我们希望尽可能符合 SCA,而签名是检查的一部分。
我不希望每个接口都有自己的强名称密钥,而是所有接口只有一个强名称密钥。
处理这种可重用的强名称密钥处理的最佳实践是什么?
I am working for a big integration platform using Biztalk 2010 and VS2008 SSIS packages. Each interface is stored in one team project (TFS2010). On the root of the team project each interface is created with its unique name and underneath a default basic branch plan structure has been created (with Main, Dev, Release + branches when applicable, see TFS branching guideance from ALM rangers).
The issue is that each interface needs a strong name key because we want to be SCA compliant as far as possible and signing is part of the checks.
I don't want each interface to have its own strong name key, but only one strong name key for all the interfaces.
What is the best practice to handle this kind of reusable strong name key handling ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
到目前为止我发现的最佳实践是这样的:
sn.exe -k MyProject.snk
- 您应该创建密钥文件与您的解决方案位于同一文件夹中。这样,您就可以拥有与每个项目关联的相同密钥,并且如果您需要更换密钥,只需在一处进行更改即可。
编辑:抱歉 - 只是注意到您实际上正在谈论多个解决方案 - 我可能仍然会采用相同的方法,但将密钥文件置于集中位置的源代码控制下。 VS 应该能够处理这个问题并识别出密钥文件位于工作区的不同位置。
The best practice I've found so far is this:
sn.exe -k MyProject.snk
- you should create the key file in the same folder as your solution.This way you have the same key associated to each project, and if you ever need to replace the key, you just have to change it in one place.
Edit: Sorry - just noticed that you're actually talking about multiple solutions - I would probably still take the same sort of approach, but have the key file under source control in a centralised location. VS should be able handle this and recognise that the key file is in your workspace at a different location.
使用 sn 工具或从 vs 创建密钥,将其添加到根目录,
然后每次您对项目进行强命名时 - 引用相同的密钥文件。
create the key with sn tool or from vs adding it to your root directory,
then every time you make a project strong named - refer to the same key file.