summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.nuget/dir.targets7
-rw-r--r--src/.nuget/packages.builds4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/.nuget/dir.targets b/src/.nuget/dir.targets
index a488694245..4cd7d022cc 100644
--- a/src/.nuget/dir.targets
+++ b/src/.nuget/dir.targets
@@ -92,4 +92,11 @@
</Target>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)\.., dir.targets))\dir.targets" />
+ <ItemGroup>
+ <!-- Add version file to packages -->
+ <File Condition="Exists('$(SyncInfoFile)')"
+ Include="$(SyncInfoFile)">
+ <SkipPackageFileCheck>true</SkipPackageFileCheck>
+ </File>
+ </ItemGroup>
</Project>
diff --git a/src/.nuget/packages.builds b/src/.nuget/packages.builds
index f57b9a9b50..0c0f65d3c1 100644
--- a/src/.nuget/packages.builds
+++ b/src/.nuget/packages.builds
@@ -25,5 +25,9 @@
<Project Include="Microsoft.NETCore.ILDAsm\Microsoft.NETCore.ILDAsm.builds" />
</ItemGroup>
+ <Import Project="$(ToolsDir)versioning.targets" />
+ <!-- Make sure we create version.txt file since it will be packaged -->
+ <Target Name="EnsureVersionInfoFileExists" BeforeTargets="Build" DependsOnTargets="CreateVersionInfoFile" />
+
<Import Project="$(MSBuildThisFileDirectory)..\..\dir.traversal.targets" />
</Project>