same project different solution sign configuration

非 Y 不嫁゛ 提交于 2020-01-07 07:43:16

问题


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.

Currently I declare the signing throw: project->properties->signing.


回答1:


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>


来源:https://stackoverflow.com/questions/20237179/same-project-different-solution-sign-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!