|
75 | 75 | DependsOnTargets="DeleteExtractedWorkloadPacks" >
|
76 | 76 | <ItemGroup>
|
77 | 77 | <_WLManifest Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.NET.Sdk.Android.Manifest-*.nupkg" />
|
78 |
| - <_WLPacks Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.Android.Sdk.$(HostOS).*.nupkg" /> |
79 |
| - <_WLPacks Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.Android.Sdk.BundleTool.*.nupkg" /> |
80 |
| - <_WLPacks Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.Android.Ref.*.nupkg" /> |
81 |
| - <_WLTemplates Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.Android.Templates.*.nupkg" /> |
82 |
| - <!-- Runtime packs are not yet supported by workloads --> |
83 |
| - <!-- <_WLPacks Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.Android.Runtime.*.nupkg" /> --> |
84 | 78 | </ItemGroup>
|
85 | 79 | <PropertyGroup>
|
86 | 80 | <_WLPackVersion>@(_WLManifest->'%(Filename)'->Replace('Microsoft.NET.Sdk.Android.Manifest-$(DotNetPreviewVersionBand).', ''))</_WLPackVersion>
|
|
97 | 91 | </ItemGroup>
|
98 | 92 | <Move SourceFiles="@(_WLExtractedFiles)" DestinationFolder="$(_SdkManifestsFolder)microsoft.net.sdk.android" />
|
99 | 93 | <RemoveDir Directories="$(_SdkManifestsFolder)temp\" />
|
100 |
| - <Unzip |
101 |
| - SourceFiles="@(_WLPacks)" |
102 |
| - DestinationFolder="$(DotNetPreviewPath)packs\$([System.String]::Copy('%(_WLPacks.Filename)').Replace('.$(_WLPackVersion)', ''))\$(_WLPackVersion)" |
103 |
| - /> |
104 |
| - <MakeDir Directories="$(DotNetPreviewPath)template-packs" /> |
105 |
| - <!-- TODO: Workaround Linux casing issue and copy template packs to lowercase destination --> |
106 |
| - <Copy SourceFiles="@(_WLTemplates)" DestinationFiles="@(_WLTemplates->'%(Filename)%(Extension)'->ToLower()->'$(DotNetPreviewPath)template-packs\%(Identity)')" /> |
107 |
| - <ItemGroup> |
108 |
| - <_UnixExecutables Include="$(DotNetPreviewPath)packs\Microsoft.Android.Sdk.*\*\tools\$(HostOS)\**\*.*" /> |
109 |
| - <_FilesToTouch Include="$(DotNetPreviewPath)sdk-manifests\$(DotNetPreviewVersionBand)\microsoft.net.sdk.android\**" /> |
110 |
| - <_FilesToTouch Include="$(DotNetPreviewPath)packs\$([System.String]::Copy('%(_WLPacks.Filename)').Replace('.$(_WLPackVersion)', ''))\$(_WLPackVersion)\**" /> |
111 |
| - </ItemGroup> |
| 94 | + |
| 95 | + <!-- dotnet workload install android-aot --> |
| 96 | + <PropertyGroup> |
| 97 | + <_NuGetConfig>$(AndroidToolchainCacheDirectory)\NuGet.config</_NuGetConfig> |
| 98 | + <_NuGetContent> |
| 99 | +<![CDATA[ |
| 100 | +<?xml version="1.0" encoding="utf-8"?> |
| 101 | +<configuration> |
| 102 | + <packageSources> |
| 103 | + <clear /> |
| 104 | + <add key="local" value="$(OutputPath)" /> |
| 105 | + <add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" /> |
| 106 | + </packageSources> |
| 107 | +</configuration> |
| 108 | +]]> |
| 109 | + </_NuGetContent> |
| 110 | + </PropertyGroup> |
| 111 | + <WriteLinesToFile File="$(_NuGetConfig)" Lines="$(_NuGetContent)" Overwrite="true" /> |
112 | 112 | <Exec
|
113 |
| - Condition=" '$(HostOS)' == 'Darwin' or '$(HostOS)' == 'Linux' " |
114 |
| - Command="chmod +x "%(_UnixExecutables.Identity)"" |
| 113 | + WorkingDirectory="$(AndroidToolchainCacheDirectory)" |
| 114 | + Command=""$(DotNetPreviewTool)" workload install android-aot --skip-manifest-update --verbosity diag" |
115 | 115 | />
|
116 |
| - <!-- Some files had timestamps in the future --> |
117 |
| - <Touch Files="@(_FilesToTouch)" /> |
| 116 | + <Delete Files="$(_NuGetConfig)" /> |
118 | 117 | </Target>
|
119 | 118 |
|
120 | 119 | <Target Name="DeleteExtractedWorkloadPacks" >
|
|
0 commit comments