Skip to content

Commit 032d840

Browse files
authored
[build] Copy templates to lowercase path on Linux (#5873)
Context: https://github.com/dotnet/sdk/issues/16946 Copy our template workload pack to a lowercase destination so that it can be detected and used when building and testing on Linux.
1 parent fefc151 commit 032d840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-tools/create-packs/Directory.Build.targets

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@
122122
DestinationFolder="$(DotNetPreviewPath)packs\$([System.String]::Copy('%(_WLPacks.Filename)').Replace('.$(_WLPackVersion)', ''))\$(_WLPackVersion)"
123123
/>
124124
<MakeDir Directories="$(DotNetPreviewPath)template-packs" />
125-
<Copy SourceFiles="@(_WLTemplates)" DestinationFolder="$(DotNetPreviewPath)template-packs" />
125+
<!-- TODO: Workaround Linux casing issue and copy template packs to lowercase destination -->
126+
<Copy SourceFiles="@(_WLTemplates)" DestinationFiles="@(_WLTemplates->'%(Filename)%(Extension)'->ToLower()->'$(DotNetPreviewPath)template-packs\%(Identity)')" />
126127
<ItemGroup>
127128
<_UnixExecutables Include="$(DotNetPreviewPath)packs\Microsoft.Android.Sdk.*\*\tools\$(HostOS)\**\*.*" />
128129
<_FilesToTouch Include="$(DotNetPreviewPath)sdk-manifests\$(DotNetPreviewVersionBand)\Microsoft.NET.Workload.Android\**" />

0 commit comments

Comments
 (0)