Skip to content

Commit 4979bf7

Browse files
committed
FIX: Move package properties to targets file which gets evaluated AFTER the project file
1 parent a21ed15 commit 4979bf7

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

Directory.Build.props

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)resources\delegate.snk</AssemblyOriginatorKeyFile>
2121
</PropertyGroup>
2222

23-
<!-- Package metadata for packable projects -->
24-
<PropertyGroup Condition="'$(IsPackable)' != 'false'">
25-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
26-
<PackageIcon>contextand.png</PackageIcon>
27-
<PackageReadmeFile>README.md</PackageReadmeFile>
28-
<Version>1.0.0-local</Version>
29-
</PropertyGroup>
30-
3123
<!-- Test project defaults -->
3224
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
3325
<IsTestProject>true</IsTestProject>

Directory.Build.targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project>
2+
<!-- Package metadata for packable projects -->
3+
<!-- This is in .targets (not .props) because it must evaluate AFTER project files set IsPackable=true -->
4+
<PropertyGroup Condition="'$(IsPackable)' != 'false'">
5+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
6+
<PackageIcon>contextand.png</PackageIcon>
7+
<PackageReadmeFile>README.md</PackageReadmeFile>
8+
<Version>1.0.0-local</Version>
9+
</PropertyGroup>
10+
</Project>

0 commit comments

Comments
 (0)