Skip to content

Commit 799e6f1

Browse files
authored
Add BeforeMicrosoftNETSdkTargets (#40344)
Add a hook similar to AfterMicrosoftNETSdkTargets, BeforeTargetFrameworkInferenceTargets, CustomBeforeMicrosoftCommonCrossTargetingTargets, etc. This provides a unified entry point for custom MSBuild SDKs and MSBuild NuGet packages to execute just after the project file regardless of whether the build is cross targeting or not.
2 parents b149a15 + 6808e56 commit 799e6f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Copyright (c) .NET Foundation. All rights reserved.
1010
***********************************************************************************************
1111
-->
1212
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
13+
<Import Project="$(BeforeMicrosoftNETSdkTargets)" Condition="'$(BeforeMicrosoftNETSdkTargets)' != ''"/>
1314

1415
<!-- Using the same property as Microsoft.CSharp.targets and presumably Microsoft.VisualBasic.targets here -->
1516
<PropertyGroup Condition="'$(TargetFrameworks)' != '' and '$(TargetFramework)' == ''">

0 commit comments

Comments
 (0)