Skip to content

Commit a7d62fc

Browse files
pjcollinsjonathanpeppers
authored andcommitted
[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 a09fa1e commit a7d62fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@
126126
DestinationFolder="$(DotNetPreviewPath)packs\$([System.String]::Copy('%(_WLPacks.Filename)').Replace('.$(_WLPackVersion)', ''))\$(_WLPackVersion)"
127127
/>
128128
<MakeDir Directories="$(DotNetPreviewPath)template-packs" />
129-
<Copy SourceFiles="@(_WLTemplates)" DestinationFolder="$(DotNetPreviewPath)template-packs" />
129+
<!-- TODO: Workaround Linux casing issue and copy template packs to lowercase destination -->
130+
<Copy SourceFiles="@(_WLTemplates)" DestinationFiles="@(_WLTemplates->'%(Filename)%(Extension)'->ToLower()->'$(DotNetPreviewPath)template-packs\%(Identity)')" />
130131
<ItemGroup>
131132
<_UnixExecutables Include="$(DotNetPreviewPath)packs\Microsoft.Android.Sdk.*\*\tools\$(HostOS)\**\*.*" />
132133
<_FilesToTouch Include="$(DotNetPreviewPath)sdk-manifests\$(DotNetPreviewVersionBand)\Microsoft.NET.Workload.Android\**" />

0 commit comments

Comments
 (0)