|
1 | 1 | <Project> |
| 2 | + <PropertyGroup> |
| 3 | + <AssemblyOriginatorKeyFile Condition="'$(AssemblyOriginatorKeyFile)'=='' AND EXISTS('$(MSBuildThisFileDirectory)build/cloud3d-codesign.snk')">$(MSBuildThisFileDirectory)build/cloud3d-codesign.snk</AssemblyOriginatorKeyFile> |
| 4 | + <AssemblyOriginatorKeyFile Condition="'$(AssemblyOriginatorKeyFile)'==''">$(MSBuildThisFileDirectory)build/Test.snk</AssemblyOriginatorKeyFile> |
| 5 | + <SignAssembly Condition="EXISTS('$(AssemblyOriginatorKeyFile)')">true</SignAssembly> |
| 6 | + </PropertyGroup> |
| 7 | + |
| 8 | + <PropertyGroup> |
| 9 | + <GenerateNuspecDependsOn>SetAuthors;SetPackageTags;SetPackageDescription;$(GenerateNuspecDependsOn)</GenerateNuspecDependsOn> |
| 10 | + </PropertyGroup> |
| 11 | + |
| 12 | + <Target Name="SetAuthors"> |
| 13 | + <RemoveDuplicates |
| 14 | + Inputs="@(Author)"> |
| 15 | + <Output |
| 16 | + TaskParameter="Filtered" |
| 17 | + ItemName="_Author"/> |
| 18 | + </RemoveDuplicates> |
| 19 | + <PropertyGroup> |
| 20 | + <Authors Condition="'@(_Author)'!=''">@(_Author, ',')</Authors> |
| 21 | + </PropertyGroup> |
| 22 | + </Target> |
| 23 | + |
| 24 | + <Target Name="SetPackageTags"> |
| 25 | + <RemoveDuplicates |
| 26 | + Inputs="@(PackageTag)"> |
| 27 | + <Output |
| 28 | + TaskParameter="Filtered" |
| 29 | + ItemName="_PackageTag"/> |
| 30 | + </RemoveDuplicates> |
| 31 | + <PropertyGroup> |
| 32 | + <PackageTags Condition="'$(PackageTags)'==''">@(_PackageTag, ' ')</PackageTags> |
| 33 | + </PropertyGroup> |
| 34 | + </Target> |
| 35 | + |
| 36 | + <Target Name="SetPackageDescription" DependsOnTargets="GetBuildVersion"> |
| 37 | + <PropertyGroup> |
| 38 | + <PackageDescription> |
| 39 | + Assembly Version: $(AssemblyVersion) |
| 40 | + File Version: $(AssemblyFileVersion) |
| 41 | + Informational Version: $(AssemblyInformationalVersion) |
| 42 | + Build Configuration: $(Configuration) |
| 43 | + $(AssemblyDescription) |
| 44 | + </PackageDescription> |
| 45 | + </PropertyGroup> |
| 46 | + <Message Text="Package Description: $(PackageDescription)" Importance="high" /> |
| 47 | + </Target> |
| 48 | + |
2 | 49 | <Target Name="PackIfChanged"> |
3 | 50 | <ItemGroup> |
4 | 51 | <_Temporary Remove="@_Temporary)" /> |
|
30 | 77 | <_Temporary Remove="@_Temporary)" /> |
31 | 78 | </ItemGroup> |
32 | 79 | <Message Importance="high" Text="CommitIDFound: $(CommitIDFound)" /> |
33 | | - |
| 80 | + |
34 | 81 | <!-- Pack libraries --> |
35 | 82 | <MSBuild Projects="$(MSBuildProjectFile)" Targets="Pack" Condition="'$(IsPackable)'=='true' AND '$(CommitIDFound)'=='true'" /> |
36 | 83 | <!-- Build sample and test projects to ensure they can build correctly --> |
|
0 commit comments