Skip to content

Commit 2455c24

Browse files
committed
Added CollectPackageReferences beforetarget
This should avoid issues where references are bundled with the incorrect version. See TurnerSoftware/CacheTower#176 for example
1 parent 82998c0 commit 2455c24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TurnerSoftware.BuildVersioning/build/TurnerSoftware.BuildVersioning.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
Condition="$(DesignTimeBuild) != 'true' AND $(SkipBuildVersioning) != 'true'" />
2323

2424
<Target Name="BuildVersioning"
25-
BeforeTargets="BeforeCompile;GenerateNuspec"
25+
BeforeTargets="BeforeCompile;GenerateNuspec;CollectPackageReferences"
2626
Condition="$(DesignTimeBuild) != 'true' AND $(SkipBuildVersioning) != 'true'">
2727
<Error Condition="'$(UsingMicrosoftNETSdk)' != 'true'" Code="BLDVER0001" Text="Build Versioning only works in SDK-style projects." />
2828
<Message Importance="$(BuildVersioningLogLevel)" Text="BuildVersioning: Project=$(MSBuildProjectFile)" />

0 commit comments

Comments
 (0)