Skip to content

Commit 8642e34

Browse files
committed
Add package icon
1 parent f692a05 commit 8642e34

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

Sources/Directory.Build.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<RepositoryUrl>https://github.com/kysect/SolutionDefaults</RepositoryUrl>
1212
<PackageProjectUrl>https://github.com/kysect/SolutionDefaults</PackageProjectUrl>
1313
<PackageReadmeFile>Readme.md</PackageReadmeFile>
14+
<PackageIcon>Icon.png</PackageIcon>
1415
</PropertyGroup>
1516

1617
<PropertyGroup Label="Build">
@@ -29,6 +30,14 @@
2930
<NeutralLanguage>en-US</NeutralLanguage>
3031
</PropertyGroup>
3132

33+
<ItemGroup Label="DefaultIcon">
34+
<None Include="../Images/Default-icon.png">
35+
<Visible>false</Visible>
36+
<Pack>true</Pack>
37+
<PackagePath>/Icon.png</PackagePath>
38+
</None>
39+
</ItemGroup>
40+
3241
<ItemGroup>
3342
<PackageReference Include="MinVer">
3443
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

Sources/Kysect.SolutionDefaults.props

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@
4646
<Deterministic>true</Deterministic>
4747
</PropertyGroup>
4848

49+
<PropertyGroup Label="DefaultIcon" Condition="$(SolutionDefaultsUseIcon) != false ">
50+
<PackageIcon>Icon.png</PackageIcon>
51+
</PropertyGroup>
4952
<ItemGroup Label="DefaultIcon" Condition="$(SolutionDefaultsUseIcon) != false ">
50-
<PackageIcon>$(MSBuildThisFileDirectory)../content/Default-icon.png</PackageIcon>
51-
<None>
53+
<None Include="$(MSBuildThisFileDirectory)../content/Default-icon.png">
5254
<Visible>false</Visible>
53-
<Include>$(MSBuildThisFileDirectory)../content/Default-icon.png</Include>
5455
<Pack>true</Pack>
55-
<PackagePath>/</PackagePath>
56+
<PackagePath>/Icon.png</PackagePath>
5657
</None>
5758
</ItemGroup>
5859

0 commit comments

Comments
 (0)