Skip to content
Permalink
Browse files

[Build] Copy .xml and .pdb from NuGet package references when using n…

…ew csproj format
  • Loading branch information
xen2 committed Jan 20, 2019
1 parent 307be22 commit 555b4f433d1392cfc3e964f14696132f4c1eed4c
Showing with 21 additions and 0 deletions.
  1. +21 −0 sources/core/Xenko.Core/build/Xenko.Core.targets
@@ -103,6 +103,27 @@
</PrepareForRunDependsOn>
</PropertyGroup>

<!--
*****************************************************************************************************************************
NuGet tweaks
*****************************************************************************************************************************
-->
<!-- Workaround to copy .xml and .pdb files for new csproj targeting (https://github.com/dotnet/sdk/issues/1458#issuecomment-401497095) -->
<Target Name="_XenkoResolveCopyLocalNuGetPackagePdbsAndXml"
Condition="$(CopyLocalLockFileAssemblies) == true"
AfterTargets="ResolveReferences">
<ItemGroup>
<ReferenceCopyLocalPaths
Include="@(ReferenceCopyLocalPaths->'%(RootDir)%(Directory)%(Filename).pdb')"
Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != ''
and Exists('%(RootDir)%(Directory)%(Filename).pdb')" />
<ReferenceCopyLocalPaths
Include="@(ReferenceCopyLocalPaths->'%(RootDir)%(Directory)%(Filename).xml')"
Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != ''
and Exists('%(RootDir)%(Directory)%(Filename).xml')" />
</ItemGroup>
</Target>

<!--
*****************************************************************************************************************************
Dependencies reading (from .ssdeps)

0 comments on commit 555b4f4

Please sign in to comment.
You can’t perform that action at this time.