|
3 | 3 |
|
4 | 4 | <Import Project="BuildStep.props" /> |
5 | 5 |
|
6 | | - <!-- Properties requires by NuGet.targets to restore PackageReferences --> |
| 6 | + <!-- Properties requires by NuGet.targets to restore packages --> |
7 | 7 | <PropertyGroup> |
8 | 8 | <TargetFramework>net472</TargetFramework> |
9 | 9 | <!-- Workaround changes from newer MSBuild requiring additional properties --> |
|
34 | 34 | <Import Project="$(_NuGetRestoreTargets)" /> |
35 | 35 |
|
36 | 36 | <ItemGroup> |
37 | | - <PackageReference Include="Microsoft.DotNet.NuGetRepack.Tasks" Version="$(MicrosoftDotnetNuGetRepackTasksVersion)" Condition="'$(UsingToolNuGetRepack)' == 'true'" IsImplicitlyDefined="true" /> |
| 37 | + <PackageDownload Include="Microsoft.DotNet.NuGetRepack.Tasks" Version="[$(MicrosoftDotnetNuGetRepackTasksVersion)]" Condition="'$(UsingToolNuGetRepack)' == 'true'" /> |
38 | 38 | </ItemGroup> |
39 | 39 |
|
40 | 40 | <PropertyGroup> |
|
45 | 45 |
|
46 | 46 | <ItemGroup Condition="'$(_ImportOrUseTooling)' == 'true'"> |
47 | 47 | <!-- Copy of 'sn.exe' in form of NuGet package. --> |
48 | | - <PackageReference Include="sn" Version="$(SNVersion)" IsImplicitlyDefined="true" /> |
49 | | - <PackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core" Version="$(MicrosoftVisualStudioEngMicroBuildCoreVersion)" IsImplicitlyDefined="true" /> |
50 | | - <PackageReference Include="MicroBuild.Core.Sentinel" Version="1.0.0" IsImplicitlyDefined="true" /> |
51 | | - <PackageReference Include="vswhere" Version="$(VSWhereVersion)" IsImplicitlyDefined="true" /> |
52 | | - <PackageReference Include="Microsoft.Signed.Wix" Version="$(MicrosoftSignedWixVersion)" IsImplicitlyDefined="true" /> |
53 | | - <PackageReference Include="Microsoft.WixToolset.Sdk" Version="$(MicrosoftWixToolsetSdkVersion)" IsImplicitlyDefined="true" /> |
54 | | - <PackageReference Include="Microsoft.DotNet.SignTool" Version="$(MicrosoftDotNetSignToolVersion)" IsImplicitlyDefined="true" /> |
55 | | - <PackageReference Include="Microsoft.DotNet.MacOsPkg.Cli" Version="$(MicrosoftDotNetMacOsPkgVersion)" IsImplicitlyDefined="true" /> |
56 | | - <PackageReference Include="Microsoft.SymbolUploader.Build.Task" Version="$(MicrosoftSymbolUploaderBuildTaskVersion)" Condition="'$(PublishToSymbolServer)' == 'true'" IsImplicitlyDefined="true" /> |
57 | | - <PackageReference Include="Microsoft.DotNet.Build.Tasks.VisualStudio" Version="$(MicrosoftDotNetBuildTasksVisualStudioVersion)" Condition="'$(UsingToolVSSDK)' == 'true'" IsImplicitlyDefined="true" /> |
| 48 | + <PackageDownload Include="sn" Version="$(SNVersion)" /> |
| 49 | + <PackageDownload Include="Microsoft.VisualStudioEng.MicroBuild.Core" Version="[$(MicrosoftVisualStudioEngMicroBuildCoreVersion)]" /> |
| 50 | + <PackageDownload Include="MicroBuild.Core.Sentinel" Version="[1.0.0]" /> |
| 51 | + <PackageDownload Include="vswhere" Version="$(VSWhereVersion)" /> |
| 52 | + <PackageDownload Include="Microsoft.Signed.Wix" Version="[$(MicrosoftSignedWixVersion)]" /> |
| 53 | + <PackageDownload Include="Microsoft.WixToolset.Sdk" Version="[$(MicrosoftWixToolsetSdkVersion)]" /> |
| 54 | + <PackageDownload Include="Microsoft.DotNet.SignTool" Version="[$(MicrosoftDotNetSignToolVersion)]" /> |
| 55 | + <PackageDownload Include="Microsoft.DotNet.MacOsPkg.Cli" Version="[$(MicrosoftDotNetMacOsPkgVersion)]" /> |
| 56 | + <PackageDownload Include="Microsoft.SymbolUploader.Build.Task" Version="[$(MicrosoftSymbolUploaderBuildTaskVersion)]" Condition="'$(PublishToSymbolServer)' == 'true'" /> |
| 57 | + <PackageDownload Include="Microsoft.DotNet.Build.Tasks.VisualStudio" Version="[$(MicrosoftDotNetBuildTasksVisualStudioVersion)]" Condition="'$(UsingToolVSSDK)' == 'true'" /> |
58 | 58 | </ItemGroup> |
59 | 59 |
|
60 | 60 | <!-- Unlike the items above, we should restore M.D.B.T.F in source build scenarios. |
61 | 61 | Only reference this if publishing is enabled as that is the only scenario where the targets file which this package |
62 | 62 | provides is being imported (from Publish.proj). --> |
63 | 63 | <ItemGroup Condition="'$(RestoreBuildTaskFeed)' == 'true'"> |
64 | | - <PackageReference Include="Microsoft.DotNet.Build.Tasks.Feed" Version="$(MicrosoftDotNetBuildTasksFeedVersion)" IsImplicitlyDefined="true" /> |
| 64 | + <PackageDownload Include="Microsoft.DotNet.Build.Tasks.Feed" Version="[$(MicrosoftDotNetBuildTasksFeedVersion)]" /> |
65 | 65 | </ItemGroup> |
66 | 66 |
|
67 | 67 | <PropertyGroup> |
|
96 | 96 | </Target> |
97 | 97 |
|
98 | 98 | <ItemGroup> |
99 | | - <PackageReference Include="Microsoft.DotNet.SourceBuild.Tasks" |
100 | | - Version="$(MicrosoftDotNetSourceBuildTasksVersion)" |
101 | | - IsImplicitlyDefined="true" |
102 | | - Condition="'$(TrackPrebuiltUsage)' == 'true'" /> |
| 99 | + <PackageDownload Include="Microsoft.DotNet.SourceBuild.Tasks" |
| 100 | + Version="[$(MicrosoftDotNetSourceBuildTasksVersion)]" |
| 101 | + IsImplicitlyDefined="true" |
| 102 | + Condition="'$(TrackPrebuiltUsage)' == 'true'" /> |
103 | 103 | </ItemGroup> |
104 | 104 |
|
105 | 105 | <!-- Repository extensibility point --> |
|
0 commit comments