Skip to content

Commit 8d7e074

Browse files
AnipikViktorHofer
andauthored
use nuget pack task from the package instead of the sdk (#46438)
* use nuget pack task from the package instead of the sdk * Update Directory.Build.targets * Update Versions.props * Update Versions.props * Update Directory.Build.targets Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
1 parent a640160 commit 8d7e074

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

eng/Versions.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
<MicrosoftDotNetBuildTasksInstallersVersion>6.0.0-beta.20621.12</MicrosoftDotNetBuildTasksInstallersVersion>
6060
<MicrosoftDotNetRemoteExecutorVersion>6.0.0-beta.20621.12</MicrosoftDotNetRemoteExecutorVersion>
6161
<MicrosoftDotNetVersionToolsTasksVersion>6.0.0-beta.20621.12</MicrosoftDotNetVersionToolsTasksVersion>
62+
<!-- NuGet dependencies -->
63+
<NuGetBuildTasksPackVersion>5.9.0-preview.2</NuGetBuildTasksPackVersion>
6264
<!-- Installer dependencies -->
6365
<MicrosoftNETCoreAppVersion>6.0.0-alpha.1.20612.4</MicrosoftNETCoreAppVersion>
6466
<MicrosoftNETCoreDotNetHostVersion>6.0.0-alpha.1.20627.5</MicrosoftNETCoreDotNetHostVersion>

src/libraries/Directory.Build.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@
127127
<PackageReference Include="Microsoft.DotNet.GenFacades" Version="$(MicrosoftDotNetGenFacadesVersion)" PrivateAssets="all" IsImplicitlyDefined="true" />
128128
</ItemGroup>
129129

130+
<!-- TODO: Remove when all required nuget pack features are part of the consumed SDK. -->
131+
<ItemGroup Condition="'$(IsPackable)' == 'true' and '$(MSBuildProjectExtension)' != '.pkgproj'">
132+
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="$(NuGetBuildTasksPackVersion)" />
133+
</ItemGroup>
134+
130135
<Target Name="SetGenApiProperties"
131136
BeforeTargets="GenerateReferenceAssemblySource">
132137
<PropertyGroup>

0 commit comments

Comments
 (0)