-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
30 lines (29 loc) · 1.11 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
30 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Project>
<!--
CI builds: disable VSTO manifest and assembly signing so that
ResolveKeySource (Microsoft.Common.targets) does not attempt to
locate a certificate that only exists on the developer machine.
These top-level PropertyGroups are evaluated after the .csproj
static PropertyGroups, effectively overriding SignManifests and
SignAssembly for CI.
-->
<PropertyGroup Condition="'$(CI)' == 'true' and '$(MSBuildProjectName)' == 'TaskMaster'">
<SignManifests>false</SignManifests>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<!--
Developer builds only: override the VSTO manifest certificate
thumbprint so the local developer certificate is used.
-->
<Target
Name="SetTaskMasterManifestCert"
BeforeTargets="ResolveKeySource"
Condition="'$(MSBuildProjectName)' == 'TaskMaster' and '$(CI)' != 'true'"
>
<PropertyGroup>
<SignManifests>true</SignManifests>
<ManifestKeyFile></ManifestKeyFile>
<ManifestCertificateThumbprint>88E95FCC6F066C07776218A398BF7046A447D802</ManifestCertificateThumbprint>
</PropertyGroup>
</Target>
</Project>