forked from ImpromptuNinjas/UltralightSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
43 lines (38 loc) · 2.62 KB
/
Directory.Build.props
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
31
32
33
34
35
36
37
38
39
40
41
42
43
<Project>
<PropertyGroup>
<Version>1.2.0-beta-r13</Version>
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
<PackageOutputPath>$(SolutionDir)</PackageOutputPath>
<LangVersion>11</LangVersion>
</PropertyGroup>
<Target Name="UpdatePackageCacheForDependencies" AfterTargets="Pack">
<PropertyGroup>
<LowerCasePackageId>$([System.String]::Copy('$(PackageId)').ToLowerInvariant())</LowerCasePackageId>
</PropertyGroup>
<Message Importance="high" Text="Updating package cache for $(PackageId) $(Version)"/>
<Unzip SourceFiles="$(PackageOutputPath)\$(PackageId).$(Version).nupkg"
DestinationFolder="$(NuGetPackageRoot)$(LowerCasePackageId)\$(Version)\"
SkipUnchangedFiles="true" ContinueOnError="true">
</Unzip>
</Target>
<PropertyGroup Condition="!$(ProjectTypeGuids.Contains('{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1}'))">
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile Condition=" '$(IsOfficial)' == 'True' ">$(MSBuildThisFileDirectory)official.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile Condition=" '$(IsOfficial)' != 'True' AND '$(IsOfficialCompatible)' != 'True' ">$(MSBuildThisFileDirectory)unofficial.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile Condition=" '$(IsOfficial)' != 'True' AND '$(IsOfficialCompatible)' == 'True' ">$(MSBuildThisFileDirectory)official-public.snk</AssemblyOriginatorKeyFile>
<PublicSign Condition=" '$(IsOfficial)' == 'True' AND '$(IsOfficialCompatible)' != 'True' ">False</PublicSign>
<PublicSign Condition=" '$(IsOfficial)' != 'True' OR '$(IsOfficialCompatible)' == 'True' ">True</PublicSign>
</PropertyGroup>
<PropertyGroup Condition=" '$(IsOfficial)' == 'True' ">
<DefineConstants Condition=" '$(DefineConstants)' != '' ">$(DefineConstants);OFFICIAL</DefineConstants>
<DefineConstants Condition=" '$(DefineConstants)' == '' ">OFFICIAL</DefineConstants>
</PropertyGroup>
<Target Name="PackageAssemblySigningReport" AfterTargets="Pack" Condition=" '$(IsPackable)' != 'False' ">
<Message Importance="high" Text="IsOfficial: $(IsOfficial)"/>
<Message Importance="high" Text="IsOfficialCompatible: $(IsOfficialCompatible)"/>
<Message Importance="high" Text="SignAssembly: $(SignAssembly)"/>
<Message Importance="high" Text="PublicSign: $(PublicSign)"/>
<Message Importance="high" Text="AssemblyOriginatorKeyFile: $(AssemblyOriginatorKeyFile)"/>
<Message Importance="high" Text="DefineConstants: $(DefineConstants)"/>
</Target>
</Project>