full symbols for visual studio or code coverage (#1043)

This commit is contained in:
David Shiflet
2020-08-10 11:46:21 -04:00
committed by GitHub
parent 35878fbc24
commit 8ca59efc27
2 changed files with 4 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
<Project>
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.0.52" />
<!-- Need full debugtype for code coverage -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugType>portable</DebugType>
<PropertyGroup Condition="'$(Configuration)' == 'Debug' and ('$(BuildingInsideVisualStudio)' != '' or '$(CodeCoverageBuild)' == 'true')">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
</Project>

View File

@@ -22,7 +22,8 @@ steps:
displayName: 'dotnet build'
inputs:
projects: '**/Microsoft.SqlTools.ServiceLayer.IntegrationTests.csproj'
arguments: '/p:CodeCoverageBuild=true'
- task: CopyFiles@2
displayName: 'Copy testsettings file to bin'
inputs: