Fix authentication assembly signing (#419)

Depending on the operation outputs are either pulled from the project
intermediate directory (e.g. in publish) or the output directory. Since
signing occurs after the build, the unsigned assembly has been copied to
the output directory so needs to be signed there as well.
This commit is contained in:
John Schmeichel 2023-06-05 18:16:03 -07:00 коммит произвёл GitHub
Родитель d722c918f1
Коммит c954695f25
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 11 удалений

Просмотреть файл

@ -49,16 +49,8 @@
</PropertyGroup>
<ItemGroup>
<FilesToSign Include="$(OutDir)$(TargetFileName)">
<Authenticode>Microsoft400</Authenticode>
<StrongName>StrongName</StrongName>
</FilesToSign>
<FilesToSign Include="$(IntermediateOutputPath)$(TargetFileName)">
<Authenticode>Microsoft400</Authenticode>
<StrongName>StrongName</StrongName>
</FilesToSign>
<FilesToSign Include="$(IntermediateOutputPath)apphost.exe" Condition=" '$(UseAppHost)' == 'true' ">
<Authenticode>Microsoft400</Authenticode>
</FilesToSign>
<FilesToSign Include="$(OutDir)$(TargetFileName)" Authenticode="Microsoft400" StrongName="StrongName" />
<FilesToSign Include="$(IntermediateOutputPath)$(TargetFileName)" Authenticode="Microsoft400" StrongName="StrongName" />
<FilesToSign Include="$(IntermediateOutputPath)apphost.exe" Condition=" '$(UseAppHost)' == 'true' " Authenticode="Microsoft400" />
</ItemGroup>
</Project>

Просмотреть файл

@ -37,6 +37,7 @@
</PropertyGroup>
<ItemGroup>
<FilesToSign Include="$(OutDir)$(TargetFileName)" Authenticode="Microsoft400" StrongName="StrongName" />
<FilesToSign Include="$(IntermediateOutputPath)$(TargetFileName)" Authenticode="Microsoft400" StrongName="StrongName" />
</ItemGroup>