-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSupportPackageInformation.targets
More file actions
84 lines (84 loc) · 3.6 KB
/
SupportPackageInformation.targets
File metadata and controls
84 lines (84 loc) · 3.6 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<Project TreatAsLocalProperty="_SolutionLicense;_ProjectReadme;_SolutionReadme">
<PropertyGroup
Label="Package Information"
Condition=" '$(IsTestableProject)' != 'true' and '$(IsXampleProject)' != 'true' "
>
<PackageId Condition=" '$(PackageId)' == '' ">$(MSBuildProjectName)</PackageId>
<Title Condition=" '$(Title)' == '' ">$(MSBuildProjectName)</Title>
<Company Condition=" '$(Company)' == '' or '$(Company)' == '$(Authors)' ">NetEvolve</Company>
<Authors Condition=" '$(Authors)' == '' or '$(Authors)' == '$(AssemblyName)' ">NetEvolve, samtrion</Authors>
<IncludeSymbols Condition=" '$(IncludeSymbols)' == '' ">true</IncludeSymbols>
<SymbolPackageFormat Condition=" '$(SymbolPackageFormat)' == '' ">snupkg</SymbolPackageFormat>
<PackageLicenseExpression Condition=" '$(PackageLicenseExpression)' == '' and '$(PackageLicenseFile)' == '' "
>MIT</PackageLicenseExpression
>
<PackageReadmeFile Condition="'$(DisableReadme)' != 'true' and '$(PackageReadmeFile)' == '' "
>README.md</PackageReadmeFile
>
<PackageIcon
Condition="'$(DisablePackageLogo)' != 'true' and '$(PackageIcon)' == '' and (Exists('$(ProjectDir)logo.png') or Exists('$(SolutionDir)logo.png'))"
>logo.png</PackageIcon
>
<PublishRepositoryUrl Condition=" '$(PublishRepositoryUrl)' == '' ">true</PublishRepositoryUrl>
<RepositoryType Condition=" '$(RepositoryType)' == '' ">git</RepositoryType>
<GeneratePackageOnBuild Condition=" '$(GeneratePackageOnBuild)' == '' ">true</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup
Label="NuGet Package Defaults"
Condition=" '$(IsTestableProject)' != 'true' and '$(IsXampleProject)' != 'true' and '$(DisableNetEvolve)' != 'true' "
>
<PackageTags>netevolve;$(PackageTags)</PackageTags>
</PropertyGroup>
<ItemGroup Label="Package Files" Condition=" '$(IsTestableProject)' != 'true' and '$(IsXampleProject)' != 'true' ">
<_SolutionLicense Include="LICENSE" Condition="Exists('LICENSE')" />
<_SolutionLicense
Include="$(SolutionDir)LICENSE"
Condition="@(_SolutionLicense) == '' and Exists('$(SolutionDir)LICENSE')"
/>
<None
Include="@(_SolutionLicense)"
Pack="true"
PackagePath=""
Visible="false"
Condition="Exists(@(_SolutionLicense))"
/>
<_ProjectReadme Include="$(ProjectDir)README.md" Condition="Exists('$(ProjectDir)README.md')" />
<_SolutionReadme
Include="$(SolutionDir)README.md"
Condition="@(_ProjectReadme) == '' and Exists('$(SolutionDir)README.md')"
/>
<None
Include="@(_ProjectReadme)"
Pack="true"
PackagePath=""
Visible="true"
Condition="'$(DisableReadme)' != 'true' and Exists(@(_ProjectReadme))"
/>
<None
Include="@(_SolutionReadme)"
Pack="true"
PackagePath=""
Visible="false"
Condition="'$(DisableReadme)' != 'true' and !Exists(@(_ProjectReadme)) and Exists(@(_SolutionReadme))"
/>
<_ProjectLogo Include="$(ProjectDir)logo.png" Condition="Exists('$(ProjectDir)logo.png')" />
<_SolutionLogo
Include="$(SolutionDir)logo.png"
Condition="@(_ProjectLogo) == '' and $(SolutionDir) != '' and Exists('$(SolutionDir)logo.png')"
/>
<None
Include="@(_ProjectLogo)"
Pack="true"
PackagePath=""
Visible="true"
Condition="'$(DisablePackageLogo)' != 'true' and Exists(@(_ProjectLogo))"
/>
<None
Include="@(_SolutionLogo)"
Pack="true"
PackagePath=""
Visible="false"
Condition="'$(DisablePackageLogo)' != 'true' and !Exists(@(_ProjectLogo)) and Exists(@(_SolutionLogo))"
/>
</ItemGroup>
</Project>