Skip to content
Discussion options

You must be logged in to vote

See https://benchmarkdotnet.org/articles/samples/IntroNuGet.html

You can use a Condition to select a package reference or project reference depending on your custom MsBuildArguments.

<ProjectReference Include="MyLib.csproj" Condition="'$(MyLibVersion)' == 'develop'">
<PackageReference Include="MyLib" Version="'$(MyLibVersion)'" Condition="'$(MyLibVersion)' != 'develop'">

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paulomorgado
Comment options

Answer selected by paulomorgado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants