Skip to content

Commit e4e9153

Browse files
authored
[build] Output templates pack to lowercase path (#7167)
Workload template packs installed into the `template-packs` folder should have a lowercased package ID. This was not accounted for when updating local build behavior in commit c21e78c. Fix the path that we "install" our template pack into for local builds so that the templates can be resolved on Linux.
1 parent 8b05314 commit e4e9153

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
@@ -216,7 +216,7 @@
216216
<_RuntimeListOutputs Include="@(AndroidSupportedTargetJitAbi->'$(BuildOutputDirectory)lib\packs\Microsoft.Android.Runtime.$(AndroidLatestStableApiLevel).%(AndroidRID)\$(AndroidPackVersion)\data\RuntimeList.xml')" AndroidRID="%(AndroidRID)" />
217217
<_RuntimeListOutputs Include="@(AndroidSupportedTargetJitAbi->'$(BuildOutputDirectory)lib\packs\Microsoft.Android.Runtime.$(AndroidLatestUnstableApiLevel).%(AndroidRID)\$(AndroidPackVersion)\data\RuntimeList.xml')" AndroidRID="%(AndroidRID)" />
218218
<_TemplatesInputs Include="$(XamarinAndroidSourcePath)src\Microsoft.Android.Templates\**" />
219-
<_TemplatesOutputs Include="$(BuildOutputDirectory)lib\template-packs\Microsoft.Android.Templates.$(AndroidPackVersion).nupkg" />
219+
<_TemplatesOutputs Include="$(BuildOutputDirectory)lib\template-packs\microsoft.android.templates.$(AndroidPackVersion).nupkg" />
220220
</ItemGroup>
221221

222222
<Target Name="CreateLocalRuntimeLists"
@@ -247,6 +247,7 @@
247247
<_PackProps Include="-p:IncludeSymbols=False" />
248248
<_PackProps Include="-p:OutputPath=$(DotNetPreviewPath)template-packs" />
249249
<_PackProps Include="-p:TemplatePackVersion=$(AndroidPackVersion)" />
250+
<_PackProps Include="-p:PackageId=microsoft.android.templates" />
250251
</ItemGroup>
251252
<Exec Command="&quot;$(DotNetPreviewTool)&quot; pack @(_PackProps, ' ') &quot;$(XamarinAndroidSourcePath)src\Microsoft.Android.Templates\Microsoft.Android.Templates.csproj&quot;" />
252253
</Target>

0 commit comments

Comments
 (0)