Multi-platform .NET bindings to the Ultralight project.
1<Project>
2 <PropertyGroup>
3 <Version>1.2.0-beta-r11</Version>
4 <SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
5 <PackageOutputPath>$(SolutionDir)</PackageOutputPath>
6 </PropertyGroup>
7
8 <Target Name="UpdatePackageCacheForDependencies" AfterTargets="Pack">
9 <PropertyGroup>
10 <LowerCasePackageId>$([System.String]::Copy('$(PackageId)').ToLowerInvariant())</LowerCasePackageId>
11 </PropertyGroup>
12 <Message Importance="high" Text="Updating package cache for $(PackageId) $(Version)"/>
13 <Unzip SourceFiles="$(PackageOutputPath)\$(PackageId).$(Version).nupkg"
14 DestinationFolder="$(NuGetPackageRoot)$(LowerCasePackageId)\$(Version)\"
15 SkipUnchangedFiles="true" ContinueOnError="true">
16 </Unzip>
17 </Target>
18
19 <PropertyGroup Condition="!$(ProjectTypeGuids.Contains('{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1}'))">
20 <SignAssembly>True</SignAssembly>
21 <AssemblyOriginatorKeyFile Condition=" '$(IsOfficial)' == 'True' ">$(MSBuildThisFileDirectory)official.snk</AssemblyOriginatorKeyFile>
22 <AssemblyOriginatorKeyFile Condition=" '$(IsOfficial)' != 'True' AND '$(IsOfficialCompatible)' != 'True' ">$(MSBuildThisFileDirectory)unofficial.snk</AssemblyOriginatorKeyFile>
23 <AssemblyOriginatorKeyFile Condition=" '$(IsOfficial)' != 'True' AND '$(IsOfficialCompatible)' == 'True' ">$(MSBuildThisFileDirectory)official-public.snk</AssemblyOriginatorKeyFile>
24 <PublicSign Condition=" '$(IsOfficial)' == 'True' AND '$(IsOfficialCompatible)' != 'True' ">False</PublicSign>
25 <PublicSign Condition=" '$(IsOfficial)' != 'True' OR '$(IsOfficialCompatible)' == 'True' ">True</PublicSign>
26 </PropertyGroup>
27
28
29 <PropertyGroup Condition=" '$(IsOfficial)' == 'True' ">
30 <DefineConstants Condition=" '$(DefineConstants)' != '' ">$(DefineConstants);OFFICIAL</DefineConstants>
31 <DefineConstants Condition=" '$(DefineConstants)' == '' ">OFFICIAL</DefineConstants>
32 </PropertyGroup>
33
34 <Target Name="PackageAssemblySigningReport" AfterTargets="Pack" Condition=" '$(IsPackable)' != 'False' ">
35 <Message Importance="high" Text="IsOfficial: $(IsOfficial)"/>
36 <Message Importance="high" Text="IsOfficialCompatible: $(IsOfficialCompatible)"/>
37 <Message Importance="high" Text="SignAssembly: $(SignAssembly)"/>
38 <Message Importance="high" Text="PublicSign: $(PublicSign)"/>
39 <Message Importance="high" Text="AssemblyOriginatorKeyFile: $(AssemblyOriginatorKeyFile)"/>
40 <Message Importance="high" Text="DefineConstants: $(DefineConstants)"/>
41 </Target>
42</Project>