Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Directory.Build.targets - github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3df816dbe301bd83feea0733fbb3e8d9a9703f97 (plain)
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 xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Xamarin.PropertyEditing.snk</AssemblyOriginatorKeyFile>
    <SignAssembly>true</SignAssembly>
  </PropertyGroup>

  <PropertyGroup>
    <!--
      Disable MicroBuild signing by default, then only enable it after compilation.
      This way, if compilation is skipped because it the project has already been built, signing
      will remain turned off and we will not redundantly submit already-signed files to sign.

      This property group must remain in Directory.Build.targets file (as opposed to *.props) because
      the initial MicroBuild_SigningEnabled value is not set until after Directory.Build.props has been processed.
    -->
    <MicroBuild_SigningEnabled_Old>$(MicroBuild_SigningEnabled)</MicroBuild_SigningEnabled_Old>
    <MicroBuild_SigningEnabled>false</MicroBuild_SigningEnabled>

    <TargetsTriggeredByCompilation>
        $(TargetsTriggeredByCompilation);
        EnableMicroBuildSigningPostCompile
    </TargetsTriggeredByCompilation>
  </PropertyGroup>

  <Target Name="EnableMicroBuildSigningPostCompile">
    <PropertyGroup>
      <MicroBuild_SigningEnabled>$(MicroBuild_SigningEnabled_Old)</MicroBuild_SigningEnabled>
    </PropertyGroup>
  </Target>
</Project>