Преглед на файлове

Making code coverage work for debug builds.

Bart De Smet преди 7 години
родител
ревизия
e8f01e5d41
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      Ix.NET/Source/Directory.build.props

+ 5 - 0
Ix.NET/Source/Directory.build.props

@@ -20,6 +20,11 @@
     <Deterministic>true</Deterministic>
     <ProduceReferenceAssembly>true</ProduceReferenceAssembly>
   </PropertyGroup>
+
+  <!-- Hack needed to make code coverage work. See https://github.com/Microsoft/vstest/issues/1748. -->
+  <PropertyGroup Condition="'$(Configuration)' == 'Debug_CSharp8' OR '$(Configuration)' == 'Debug'">
+    <DebugType>full</DebugType>
+  </PropertyGroup>
     
   <ItemGroup>
     <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>