I have a tool which I want to deliver via nuget. I'm not very familiar with it, but what I read so far is that you can define dependencies with conditions. Can the condition also be a environment variable?
I found this here:
<ItemGroup>
<!-- ... -->
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" Condition="'$(TargetFramework)' == 'net452'" />
<!-- ... -->
</ItemGroup>
What are there for other "variables" in like in the example above the TargetFramework
?
There are also two dependencies which contains what I need, how can I say that I need one of them and not both? And how can I define which I want if nothing is installed yet?