|
1 | 1 | <Project> |
2 | 2 |
|
3 | | - <ItemGroup Condition=" '$(IncludeAspNetCoreRuntime)' != 'false' "> |
| 3 | + <ItemGroup Condition="'$(IncludeAspNetCoreRuntime)' != 'false'"> |
4 | 4 | <BundledDotnetTool Include="dotnet-dev-certs" Version="$(DotnetDevCertsPackageVersion)" /> |
5 | 5 | <BundledDotnetTool Include="dotnet-user-jwts" Version="$(DotnetUserJwtsPackageVersion)" /> |
6 | 6 | <BundledDotnetTool Include="dotnet-user-secrets" Version="$(DotnetUserSecretsPackageVersion)" ObsoletesCliTool="Microsoft.Extensions.SecretManager.Tools" /> |
|
9 | 9 | <ItemGroup> |
10 | 10 | <BundledDotnetTool Update="@(BundledDotnetTool)"> |
11 | 11 | <PackagePathRelativeToPackageRoot>%(Identity)/%(Version)/</PackagePathRelativeToPackageRoot> |
12 | | - <RestoredPackagePath>$(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(PackagePathRelativeToPackageRoot)', '').ToLower())/</RestoredPackagePath> |
| 12 | + <RestoredPackagePath>$(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(PackagePathRelativeToPackageRoot)', '').ToLowerInvariant())/</RestoredPackagePath> |
13 | 13 | <NupkgPathRelativeToPackageRoot>%(Identity)/%(Version)/%(Identity).%(Version).nupkg</NupkgPathRelativeToPackageRoot> |
14 | | - <RestoredNupkgPath>$(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(NupkgPathRelativeToPackageRoot)', '').ToLower())</RestoredNupkgPath> |
| 14 | + <RestoredNupkgPath>$(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(NupkgPathRelativeToPackageRoot)', '').ToLowerInvariant())</RestoredNupkgPath> |
15 | 15 | </BundledDotnetTool> |
16 | 16 | </ItemGroup> |
17 | 17 |
|
18 | | - <Target Name="LayoutBundledTools" DependsOnTargets="SetupBundledComponents"> |
19 | | - <ItemGroup> |
20 | | - <BundledToolLayoutProject Include="$(MSBuildThisFileDirectory)..\projects\DownloadPackage.csproj"> |
21 | | - <!-- For this unique RestoreProjectStyle, see: https://aka.ms/global-tools-nuget --> |
22 | | - <Properties> |
23 | | - PackageToRestore=%(BundledDotnetTool.Identity); |
24 | | - PackageVersionToRestore=%(BundledDotnetTool.Version); |
25 | | - TargetFramework=$(TargetFramework); |
26 | | - RestoreProjectStyle=DotnetToolReference |
27 | | - </Properties> |
28 | | - </BundledToolLayoutProject> |
29 | | - </ItemGroup> |
30 | | - |
31 | | - <MSBuild Projects="@(BundledToolLayoutProject)" /> |
| 18 | + <ItemGroup> |
| 19 | + <PackageDownload Include="@(BundledDotnetTool)" Version="[%(Version)]" /> |
| 20 | + </ItemGroup> |
32 | 21 |
|
| 22 | + <Target Name="LayoutBundledTools" Condition="'@(BundledDotnetTool)' != ''"> |
33 | 23 | <ItemGroup> |
34 | 24 | <BundledToolFiles Include="%(BundledDotnetTool.RestoredPackagePath)\**\*.*" PackageToRestore="%(BundledDotnetTool.Identity)" PackageVersionToRestore="%(BundledDotnetTool.Version)" /> |
35 | 25 | <BundledToolFiles Remove="%(BundledDotnetTool.RestoredPackagePath)\*.*" /> |
36 | 26 | </ItemGroup> |
37 | 27 |
|
38 | 28 | <Copy SourceFiles="@(BundledToolFiles)" |
39 | | - DestinationFiles="@(BundledToolFiles->'$(SdkOutputDirectory)DotnetTools/%(PackageToRestore)\%(PackageVersionToRestore)\%(RecursiveDir)%(Filename)%(Extension)')" |
| 29 | + DestinationFiles="@(BundledToolFiles->'$(SdkOutputDirectory)DotnetTools\%(PackageToRestore)\%(PackageVersionToRestore)\%(RecursiveDir)%(Filename)%(Extension)')" |
40 | 30 | SkipUnchangedFiles="true" /> |
41 | 31 | </Target> |
42 | 32 |
|
|
0 commit comments