same project different solution sign configuration

2019-08-31 07:24发布

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条回答
Animai°情兽
2楼-- · 2019-08-31 07:30

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>
查看更多
登录 后发表回答