-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated signature verification to include DLLs
- Loading branch information
Showing
9 changed files
with
204 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0"> | ||
<PropertyGroup> | ||
<RepoRoot Condition=" '$(RepoRoot)' == '' ">$([MSBuild]::NormalizeDirectory('$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'LICENSE'))'))</RepoRoot> | ||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(RepoRoot)packages</NuGetPackageRoot> | ||
<BuildConfiguration Condition=" '$(BuildConfiguration)' == '' ">Release</BuildConfiguration> | ||
|
||
<TestFxSigningPropsImported>true</TestFxSigningPropsImported> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)key.snk</AssemblyOriginatorKeyFile> | ||
<SignAssembly>true</SignAssembly> | ||
<SignType Condition=" '$(SignType)' == '' ">Test</SignType> | ||
<PublicSign Condition=" '$(IsLocalizedBuild)' == '' or '$(IsLocalizedBuild)' != 'true'">true</PublicSign> | ||
|
||
<!-- Temporarily turning on Delay signing for Localized builds because publickey = true is not passed on to the assembler to create resource assmblies.--> | ||
<DelaySign Condition=" '$(IsLocalizedBuild)' == 'true' ">true</DelaySign> | ||
<OutputPath Condition=" '$(OutputPath)' == '' ">$(RepoRoot)artifacts\$(Configuration)\$(MSBuildProjectName)\</OutputPath> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup> | ||
<TestFxSigningTargetsImported>true</TestFxSigningTargetsImported> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)key.snk"> | ||
<!-- Do not have this show up in Solution Explorer in VS --> | ||
<InProject>false</InProject> | ||
</None> | ||
</ItemGroup> | ||
|
||
<!-- Signing and Localization. --> | ||
<ItemGroup Condition=" '$(IsTest)' == '' or '$(IsTest)' == 'false' "> | ||
<FilesToSign Include="$(OutDir)\$(AssemblyName).dll" Condition=" '$(IsVsixProj)' == '' or '$(IsVsixProj)' != 'true' "> | ||
<Authenticode>Microsoft400</Authenticode> | ||
<StrongName>StrongName</StrongName> | ||
</FilesToSign> | ||
|
||
<SignFilesDependsOn Include="GatherLocalizedOutputsForSigning"> | ||
<!-- Do not have this show up in Solution Explorer in VS --> | ||
<InProject>false</InProject> | ||
</SignFilesDependsOn> | ||
</ItemGroup> | ||
|
||
<Target Name="GatherLocalizedOutputsForSigning" DependsOnTargets="TestFxLocalization"> | ||
<ItemGroup> | ||
<FilesToSign Include="$(OutDir)\**\$(AssemblyName).resources.dll"> | ||
<Authenticode>Microsoft400</Authenticode> | ||
<StrongName>StrongName</StrongName> | ||
</FilesToSign> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters