title: Conditional include of PackageReference
body: <p>We need to include StackExchange.Redis.StrongName for our release builds but StackExchange.Redis for debug builds. Our project is .NET 4.71.</p>
  
  <p>I tried to achieve this in our csproj with:</p>
  
  <pre><code>  &lt;Choose&gt;
      &lt;When Condition="'$(Configuration)' == 'Release'"&gt;
          &lt;ItemGroup&gt;
              &lt;PackageReference Include="StackExchange.Redis.StrongName" Version="1.2.6" /&gt;
          &lt;/ItemGroup&gt;
      &lt;/When&gt;
      &lt;Otherwise&gt;
          &lt;ItemGroup&gt;
              &lt;PackageReference Include="StackExchange.Redis" Version="1.2.6" /&gt;
          &lt;/ItemGroup&gt;
      &lt;/Otherwise&gt;
    &lt;/Choose&gt;
  </code></pre>
  
  <p>But I'm still getting this error:</p>
  
  <pre><code>Error   CS0433  The type 'ConnectionMultiplexer' exists in both 'StackExchange.Redis.StrongName, Version=1.2.1.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46' and 'StackExchange.Redis, Version=1.2.6.0, Culture=neutral, PublicKeyToken=null'
  </code></pre>
  
  <p>Either I've misunderstood how Choose works, or am I missing something else? Can you even do what I want to do? If not is there any other way around this?</p>
  
  <p>TVMIA,</p>
  
  <p>Adam.</p>