Condition that a project is referenced #6848
Unanswered
danielchalmers
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have a condition that triggers if a
ProjectReference
exists for a certain project?Use case: In my
Directory.Build.targets
I want to use the new Global Using spec to include a Using for a project if it's referenced.Sample:
<Using Include="MyProject.Common" Condition="'%(ProjectReference.Contains('MyProject.Common'))'" />
Beta Was this translation helpful? Give feedback.
All reactions