Skip to content

Commit c258353

Browse files
committed
Update signing keys for NewProjectWizard.csproj
1 parent 446ceea commit c258353

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎GoogleTestAdapter/NewProjectWizard/NewProjectWizard.csproj‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,13 @@
134134
</FilesToSign>
135135
</ItemGroup>
136136
</Target>
137+
<PropertyGroup>
138+
<PreBuildEvent Condition="'$(RealSign)' != 'True'">if exist "$(SolutionDir)Keys\Key_Release.snk" (
139+
echo Using Release key for signing assembly
140+
copy "$(SolutionDir)Keys\Key_Release.snk" "$(ProjectDir)Key.snk"
141+
) else (
142+
echo Using Debug key for signing assembly
143+
copy "$(SolutionDir)Keys\Key_Debug.snk" "$(ProjectDir)Key.snk"
144+
)</PreBuildEvent>
145+
</PropertyGroup>
137146
</Project>

‎pipeline/common.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
script: |-
174174
$project_template = 'GoogleTestAdapter\GoogleTestProjectTemplate\GoogleTest.vstemplate'
175175
(Get-Content $project_template) | ForEach-Object {
176-
$_ -Replace "1924acebdd4c8a75", "b03f5f7f11d50a3a"
176+
$_ -Replace "1924acebdd4c8a75", "1924acebdd4c8a75"
177177
} | Set-Content $project_template
178178
- task: CopyFiles@2
179179
displayName: 'Copy FinalPublicKey.snk to TestAdapterForGoogleTest'

0 commit comments

Comments
 (0)