1616 <Target Name =" EnsureCiBuildsHaveVersion" BeforeTargets =" Build;Pack" Condition =" '$(ContinuousIntegrationBuild)' == 'true' and '$(CiBuildVersion)' == ''" >
1717 <Error Text =" ContinuousIntegrationBuild is enabled without specifying version number!" />
1818 </Target >
19-
20- <!-- Ensure packages have descriptions -->
21- <Target Name =" EnsurePackagesHaveDescriptions" BeforeTargets =" GenerateNuspec" Condition =" '$(IsPackable)' == 'true' and '$(PackageDescription)' == 'PACKAGE_DESCRIPTION_MISSING'" >
22- <Error Text =" $(AssemblyName) does not have a PackageDescription!" />
23- </Target >
24- <Target Name =" EnsurePackagesHaveDescriptionsBeforeBuild" BeforeTargets =" Build" Condition =" '$(IsPackable)' == 'true' and '$(PackageDescription)' == 'PACKAGE_DESCRIPTION_MISSING'" >
25- <Warning Text =" $(AssemblyName) does not have a PackageDescription!" />
26- </Target >
2719
2820 <!-- Use the informational version (which includes the Git revision) for the package version -->
2921 <Target Name =" UseInformationalVersionForPackageVersion" BeforeTargets =" GenerateNuspec;_GetOutputItemsFromPack" DependsOnTargets =" AddSourceRevisionToInformationalVersion" >
3224 <PackageVersion >$(InformationalVersion)</PackageVersion >
3325 </PropertyGroup >
3426 </Target >
27+
28+ <!-- Add common package description blurb to all packages -->
29+ <PropertyGroup >
30+ <CommonPackageDescription >A framework for automatically generating bindings for C/C++ libraries.</CommonPackageDescription >
31+ <PackageDescription Condition =" '$(PackageDescription)' != ''" >$(CommonPackageDescription) $(PackageDescription)</PackageDescription >
32+ <PackageDidNotSpecifyCustomDescription Condition =" '$(PackageDescription)' == ''" >true</PackageDidNotSpecifyCustomDescription >
33+ <PackageDescription Condition =" '$(PackageDescription)' == ''" >$(CommonPackageDescription)</PackageDescription >
34+ </PropertyGroup >
35+
36+ <!-- Ensure all specific packages have specific descriptions -->
37+ <Target Name =" EnsurePackageHasSpecificDescription" BeforeTargets =" GenerateNuspec" Condition =" '$(IsPackable)' == 'true' and '$(PackageDidNotSpecifyCustomDescription)' == 'true' and '$(AssemblyName)' != 'Biohazrd.AllInOne'" >
38+ <Error Text =" $(AssemblyName) does not have a PackageDescription!" />
39+ </Target >
40+ <Target Name =" EnsurePackageHasSpecificDescriptionBeforeBuild" BeforeTargets =" Build" Condition =" '$(IsPackable)' == 'true' and '$(PackageDidNotSpecifyCustomDescription)' == 'true'and '$(AssemblyName)' != 'Biohazrd.AllInOne'" >
41+ <Warning Text =" $(AssemblyName) does not have a PackageDescription!" />
42+ </Target >
3543</Project >
0 commit comments