Skip to content

Commit 6fbd407

Browse files
authored
Merge pull request #212 from zivkan/zivkan-patch-1
Add NuGetPackTargets import to ImportAfter.targets
2 parents 9a5449e + 9b64f1e commit 6fbd407

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.NuGet.Build.Tasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Copyright (c) .NET Foundation. All rights reserved.
1212
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1313
<PropertyGroup>
1414
<NuGetTargets Condition="'$(NuGetTargets)'==''">$(MSBuildExtensionsPath)\Microsoft\NuGet\$(VisualStudioVersion)\Microsoft.NuGet.targets</NuGetTargets>
15+
<NuGetPackTargets Condition="'$(NuGetPackTargets)'==''">$(MSBuildExtensionsPath)\..\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.Pack.targets</NuGetPackTargets>
1516
</PropertyGroup>
1617
<Import Condition="Exists('$(NuGetTargets)') and '$(SkipImportNuGetBuildTargets)' != 'true'" Project="$(NuGetTargets)" />
18+
<Import Condition="Exists('$(NuGetPackTargets)') And '$(SkipImportNuGetPackTargets)' != 'true' and '$(UsingMicrosoftNetSdk)' != 'true'" Project="$(NuGetPackTargets)" />
1719
</Project>

0 commit comments

Comments
 (0)