You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are couple sdk ***DependsOn properties that allow injecting custom target as dependencies of sdk targets. However big portion of those properties are force set within sdk.targets - so users'd need to include sdk.targets explicitly to be able to set them (we even document a need for this workaround in the documentation mentioned below).
#4922 fixed couple, #9703 fixed one, but we have still dozens that we force overwrite.
Enforcing this rule could be an interesting BuildCheck
Would such properties by manualy configured by the author+user, or might there be any 'magic' how to detect properties that should actually behave as items?
Context
There are couple sdk ***DependsOn properties that allow injecting custom target as dependencies of sdk targets. However big portion of those properties are force set within sdk.targets - so users'd need to include sdk.targets explicitly to be able to set them (we even document a need for this workaround in the documentation mentioned below).
#4922 fixed couple, #9703 fixed one, but we have still dozens that we force overwrite.
e.g. the externally documented
Commonly overridden DependsOn properties
BuildDependsOn
:msbuild/src/Tasks/Microsoft.Common.CurrentVersion.targets
Lines 891 to 895 in 23f7752
CleanDependsOn
:msbuild/src/Tasks/Microsoft.Common.CurrentVersion.targets
Lines 5675 to 5682 in 23f7752
CompileDependsOn
:msbuild/src/Tasks/Microsoft.Common.CurrentVersion.targets
Lines 3595 to 3607 in 23f7752
But there are others that seem as potentially usefull - CoreBuildDependsOn, RebuildDependsOn, RunDependsOn, PublishDependsOn etc. etc.
Suggestion
Select a usefull subset (or probably all?) of the DependsOn properties in common target files (search) and redefine those with the additive pattern:
--->
The text was updated successfully, but these errors were encountered: