瀏覽代碼

Making code coverage work for debug builds.

Bart De Smet 6 年之前
父節點
當前提交
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"/>