Skip to content

Commit

Permalink
[build] Copy templates to lowercase path on Linux (#5873)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pjcollins authored Apr 30, 2021
1 parent fefc151 commit 032d840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-tools/create-packs/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
DestinationFolder="$(DotNetPreviewPath)packs\$([System.String]::Copy('%(_WLPacks.Filename)').Replace('.$(_WLPackVersion)', ''))\$(_WLPackVersion)"
/>
<MakeDir Directories="$(DotNetPreviewPath)template-packs" />
<Copy SourceFiles="@(_WLTemplates)" DestinationFolder="$(DotNetPreviewPath)template-packs" />
<!-- TODO: Workaround Linux casing issue and copy template packs to lowercase destination -->
<Copy SourceFiles="@(_WLTemplates)" DestinationFiles="@(_WLTemplates->'%(Filename)%(Extension)'->ToLower()->'$(DotNetPreviewPath)template-packs\%(Identity)')" />
<ItemGroup>
<_UnixExecutables Include="$(DotNetPreviewPath)packs\Microsoft.Android.Sdk.*\*\tools\$(HostOS)\**\*.*" />
<_FilesToTouch Include="$(DotNetPreviewPath)sdk-manifests\$(DotNetPreviewVersionBand)\Microsoft.NET.Workload.Android\**" />
Expand Down

0 comments on commit 032d840

Please sign in to comment.