Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 5f25121

Browse files
committed
build: copy symbols to .\Symbols folder.
Copy symbols into the .\Symbols folder for all non-Test projects. This will make symbol indexing and publishing easier.
1 parent 9224b83 commit 5f25121

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Microsoft.Vsts.Authentication/Microsoft.Vsts.Authentication.csproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@
9393
<!-- Only download a new copy of nuget.exe if we don't have a copy available -->
9494
<PropertyGroup>
9595
<NugetPath>nuget.exe</NugetPath>
96-
<IsSigned>
97-
</IsSigned>
96+
<IsSigned></IsSigned>
9897
<IsSigned Condition=" '$(SignType)' == '' Or '$(SignType)' == '*Undefined*' ">-unsigned</IsSigned>
9998
<NugetWorkDir>$(OutputPath.TrimEnd('\'))</NugetWorkDir>
10099
</PropertyGroup>

build.targets

+12
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,16 @@
1515
<Delete Files="$(OutputPath)\*.*;$(IntermediateOutputPath)\*.*" />
1616
<RemoveDir Directories="$(IntermediateOutputPath);$(OutputPath)"/>
1717
</Target>
18+
<Target Name="CopySymbols" Condition=" '$(TestProjectType)' == '' Or '$(TestProjectType)' == '*Undefined*' " AfterTargets="CopyFilesToOutputDirectory">
19+
<PropertyGroup>
20+
<SymbolDir>$(SolutionDir)\Symbols</SymbolDir>
21+
</PropertyGroup>
22+
<ItemGroup>
23+
<SymbolFiles Include="$(OutputPath)\*.pdb">
24+
<InProject>false</InProject>
25+
</SymbolFiles>
26+
</ItemGroup>
27+
<MakeDir Condition="!Exists('$(SymbolDir)')" Directories="$(SymbolDir)" />
28+
<Copy SourceFiles="@(SymbolFiles)" DestinationFolder="$(SymbolDir)" />
29+
</Target>
1830
</Project>

test.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(SolutionDir)build.targets" />
44
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
55
</Project>

0 commit comments

Comments
 (0)