Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 5239692

Browse files
author
Livar
authored
Merge pull request #4953 from livarcocc/remove_star_from_test_packages
Adding a SdkNugetVersion property when invoking dotnet pack on test packages
2 parents c92fd4c + c48867b commit 5239692

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

TestAssets/TestPackages/dotnet-dependency-tool-invoker/dotnet-dependency-tool-invoker.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);portable-net45+win8;dnxcore50</PackageTargetFallback>
1111
</PropertyGroup>
1212

13+
<PropertyGroup>
14+
<SdkNugetVersion Condition=" '$(SdkNugetVersion)' == ''">1.0.0-preview4-*</SdkNugetVersion>
15+
</PropertyGroup>
16+
1317
<ItemGroup>
1418
<Compile Include="**\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
1519
<Compile Include="..\..\..\src\dotnet\CommandLine\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
@@ -34,7 +38,7 @@
3438
<Version>4.0.0-rc2</Version>
3539
</PackageReference>
3640
<PackageReference Include="Microsoft.DotNet.Cli.Utils">
37-
<Version>1.0.0-preview4-*</Version>
41+
<Version>$(SdkNugetVersion)</Version>
3842
</PackageReference>
3943
</ItemGroup>
4044

build/Microsoft.DotNet.Cli.Test.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,13 @@
208208
<DotNetPackMsbuildArgs Condition=" '$(IsDesktopAvailable)' == 'True' And '%(TestPackageProject.PackRuntime)' != '' ">/p:RuntimeIdentifier=%(TestPackageProject.PackRuntime)</DotNetPackMsbuildArgs>
209209
</PropertyGroup>
210210

211+
<!-- https://github.com/NuGet/Home/issues/4063 -->
211212
<DotNetPack NoBuild="True"
212213
Output="$(TestPackagesDir)"
213214
ProjectPath="%(TestPackageProject.ProjectPath)"
214215
ToolPath="$(Stage0Directory)"
215216
VersionSuffix="%(TestPackageProject.VersionSuffix)"
216-
MsbuildArgs="$(DotNetPackMsbuildArgs)" />
217+
MsbuildArgs="$(DotNetPackMsbuildArgs) /p:SdkNuGetVersion=$(SdkNugetVersion)" />
217218
</Target>
218219

219220
<Target Name="BuildTestAssetPackageProjects"

0 commit comments

Comments
 (0)