同一个项目不同的解决方案标志配置 [英] same project different solution sign configuration
本文介绍了同一个项目不同的解决方案标志配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图找到使用强名称符号作为配置的方法.我的情况是:我有一个项目,它包含在两个不同的解决方案中.对于一个解决方案,我希望项目使用强名称密钥进行签名,但对于另一个解决方案,我希望项目没有签名.
I am trying to find way to use the strong name sign as an configuration. My case is: I have project that it include in two different solution. For one solution I want that the project will be sign with strong name key, but for the other solution I want that the project will be without sign.
目前我声明签名抛出:project->properties->signing.
Currently I declare the signing throw: project->properties->signing.
推荐答案
好的,我知道了,手动编辑proj文件
OK, I got it, just edit proj file manually
<PropertyGroup Condition="'$(SolutionName)' == 'SolutionToSign' ">
<snip />
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
这篇关于同一个项目不同的解决方案标志配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文