-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
23 lines (21 loc) · 1.24 KB
/
Directory.Build.targets
File metadata and controls
23 lines (21 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- Shared project settings -->
<!-- Revision: 2021.10.19.0 -->
<Project>
<PropertyGroup>
<_LegacyXmlDocsCopier />
<_LegacyXmlDocsCopier Condition="'$(TargetFramework)' == 'netstandard2.1'">true</_LegacyXmlDocsCopier>
<_LegacyXmlDocsCopier Condition="'$(TargetFramework)' == 'net5.0'">true</_LegacyXmlDocsCopier>
</PropertyGroup>
<!-- https://github.com/dotnet/sdk/issues/1458#issuecomment-420456386 -->
<!-- comment this PDB workaround out to get publishing the test game working again -->
<Target Name="_ResolveCopyLocalNuGetPackagePdbsAndXml" Condition="'$(CopyLocalLockFileAssemblies)' == 'true' And '$(Configuration)' == 'Debug' And '$(_LegacyXmlDocsCopier)' == '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>
</Project>