Skip to content

Commit

Permalink
Provide a default value for package description
Browse files Browse the repository at this point in the history
SDK pack defaults the package description to the string Package Description if none is provided.

Do the same in nugetizer so that installing the package doesn't start failing for packages (maybe internal?) where a description isn't provided.

Fixes #40
  • Loading branch information
kzu committed Dec 4, 2020
1 parent fe7db53 commit 87aea86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NuGetizer.Tasks/NuGetizer.PackageMetadata.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Copyright (c) .NET Foundation. All rights reserved.
<!-- Matches the SDK Pack default when set to true. -->
<PackageId Condition="'$(IsPackable)' == 'true' and '$(PackageId)' == ''">$(AssemblyName)</PackageId>
<PackageId Condition="'$(IsPackable)' == 'true' and '$(PackageId)' == ''">$(MSBuildProjectName)</PackageId>

<!-- For compatiblity with SDK Pack, we set a default description too -->
<Description Condition="'$(Description)' == ''">Package Description</Description>
</PropertyGroup>

<ItemDefinitionGroup>
Expand Down

0 comments on commit 87aea86

Please sign in to comment.