8000 Only include/pack icon.png if it exists in the default location · devlooped/oss@ae442c0 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit ae442c0

Browse files
authored
Only include/pack icon.png if it exists in the default location
1 parent 55c0b32 commit ae442c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Directory.Build.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<Copyright>Copyright (C) Daniel Cazzulino and Contributors. All rights reserved.</Copyright>
2424
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
2525
<PackageLicenseExpression>MIT</PackageLicenseExpression>
26-
<PackageIcon>icon.png</PackageIcon>
26+
<PackageIcon Condition="Exists('$(MSBuildThisFileDirectory)icon.png')">icon.png</PackageIcon>
2727

2828
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2929
<GenerateRepositoryUrlAttribute>true</GenerateRepositoryUrlAttribute>
@@ -41,7 +41,8 @@
4141
<None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png"
4242
Pack="true"
4343
Visible="false"
44-
PackagePath="%(Filename)%(Extension)" />
44+
PackagePath="%(Filename)%(Extension)"
45+
Condition="Exists('$(MSBuildThisFileDirectory)icon.png')" />
4546
</ItemGroup>
4647

4748
<PropertyGroup Label="Build">

0 commit comments

Comments
 (0)
0