Skip to content

Instantly share code, notes, and snippets.

@pavel-agarkov
Created February 1, 2018 15:12
Show Gist options
  • Save pavel-agarkov/d20a8b51f61cc914379da5e1484f0f3f to your computer and use it in GitHub Desktop.
Save pavel-agarkov/d20a8b51f61cc914379da5e1484f0f3f to your computer and use it in GitHub Desktop.
Conditional package references
...
<Choose>
<When Condition=" '$(Configuration)'=='Test' ">
<ItemGroup>
<PackageReference Include="Moq" Version="4.8.1" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>
</When>
</Choose>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment