-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPackage.props
More file actions
37 lines (36 loc) · 2.27 KB
/
Copy pathPackage.props
File metadata and controls
37 lines (36 loc) · 2.27 KB
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
<Project>
<PropertyGroup>
<PackReadMe>true</PackReadMe>
<Title>$(AssemblyName)</Title>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageId>$(AssemblyName)</PackageId>
<Authors>fgilde</Authors>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<RepositoryType>Git</RepositoryType>
<PackageProjectUrl>https://fgilde.github.io/Nextended/</PackageProjectUrl>
<RepositoryUrl>https://github.com/fgilde/Nextended</RepositoryUrl>
<Description>This Library provides great and usefull Extension Methods, Small Helpers and Great usefull Types</Description>
<Copyright>Copyright © $(Authors) 2020-$([System.DateTime]::Now.Year)</Copyright>
<PackageTags>ClassMapping, Mapper, Automap, Enumerable Extensions, EnumHelper, AutoNotificationObject, CollectionWatcher, SuperType, TypedIds</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<!-- Every package ships its OWN README. Before this was centralised, nine packages
(Core, EF, Web, Cache, Blazor, UI, Imaging, Aspire, AutoDto) silently shipped the
repository root README to nuget.org because only the other ten opted out via
PackReadMe=false and declared their own <None Include="README.md" />.
Now the rule lives in exactly one place: the project-local README.md wins, and the
root README is only a fallback for a project that has none. -->
<PropertyGroup Condition="'$(PackReadMe)' == 'true' And Exists('$(MSBuildProjectDirectory)\README.md')">
<NextendedReadmePath>$(MSBuildProjectDirectory)\README.md</NextendedReadmePath>
</PropertyGroup>
<PropertyGroup Condition="'$(PackReadMe)' == 'true' And !Exists('$(MSBuildProjectDirectory)\README.md')">
<NextendedReadmePath>$(MSBuildThisFileDirectory)README.md</NextendedReadmePath>
</PropertyGroup>
<ItemGroup>
<!-- The ONE icon: swap $(MSBuildThisFileDirectory)icon.png and every package,
README and the docs site follow (see tools/Update-PackageDocs.ps1). -->
<None Include="$(MSBuildThisFileDirectory)icon.png" Pack="true" PackagePath="icon.png" />
<None Include="$(NextendedReadmePath)" Condition="'$(NextendedReadmePath)' != ''" Pack="true" PackagePath="README.md" />
</ItemGroup>
</Project>