Skip to content

Commit 3f8076a

Browse files
authored
Change _BlockWinMDsOnUnsupportedTFMs dependencies to fix WPF temp targets ordering (#12104)
The introduction of _BlockWinMDsOnUnsupportedTFMs broke the WPF temp project generation, which broke PowerShell Core. This PR changes the target ordering so it doesn't destabilize the WPF targets. I've validated that this change doesn't cause this target to be skipped on incremental builds. Fixes #12093 cc: @rlander @AaronRobinsonMSFT @ryalanms @wli3 @dsplaisted
1 parent c11dc2f commit 3f8076a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ Copyright (c) .NET Foundation. All rights reserved.
891891
============================================================
892892
-->
893893
<Target Name="_BlockWinMDsOnUnsupportedTFMs"
894-
BeforeTargets="CoreCompile"
894+
AfterTargets="PreBuildEvent"
895895
DependsOnTargets="ResolveReferences"
896896
Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '5.0'))">
897897
<NETSdkError Condition="'%(ReferencePath.Extension)' == '.winmd'"

0 commit comments

Comments
 (0)