|
2 | 2 | <PropertyGroup> |
3 | 3 | <_Root>$(MSBuildThisFileDirectory)..\..\</_Root> |
4 | 4 | <_BinlogPathPrefix>$(_Root)bin/Build$(Configuration)/msbuild-$([System.DateTime]::Now.ToString("yyyyMMddTHHmmss"))</_BinlogPathPrefix> |
| 5 | + <_TempDirectory>$(DotNetPreviewPath)..\.xa-workload-temp-$([System.IO.Path]::GetRandomFileName())</_TempDirectory> |
| 6 | + <MauiVersionBand Condition=" '$(MauiVersionBand)' == '' ">$(DotNetSdkManifestsFolder)</MauiVersionBand> |
| 7 | + <MauiUseLocalPacks Condition=" '$(MauiUseLocalPacks)' == '' ">false</MauiUseLocalPacks> |
| 8 | + <MauiSourcePath Condition=" '$(MauiSourcePath)' == '' ">$(XamarinAndroidSourcePath)..\maui</MauiSourcePath> |
| 9 | + <MauiPackagePath Condition=" '$(MauiPackagePath)' == '' ">$(MauiSourcePath)\artifacts</MauiPackagePath> |
| 10 | + <MauiWorkloadToInstall Condition=" '$(MauiWorkloadToInstall)' == '' ">maui-android</MauiWorkloadToInstall> |
5 | 11 | </PropertyGroup> |
6 | 12 |
|
7 | 13 | <Target Name="BuildExternal"> |
|
47 | 53 | <RemoveDir Directories="@(_DirectoriesToRemove)" /> |
48 | 54 | </Target> |
49 | 55 |
|
| 56 | + <Target Name="UpdateMauiWorkloadsProj"> |
| 57 | + <XmlPoke |
| 58 | + XmlInputPath="$(MauiSourcePath)\src\DotNet\Dependencies\Workloads.csproj" |
| 59 | + Value="Microsoft.NET.Sdk.Android.Manifest-$(DotNetSdkManifestsFolder)" |
| 60 | + Query="/Project/ItemGroup/PackageDownload[contains(@Include,'Microsoft.NET.Sdk.Android.Manifest-')]/@Include" /> |
| 61 | + </Target> |
| 62 | + |
50 | 63 | <Target Name="InstallMaui"> |
51 | 64 | <Error Text="%24(MauiVersion) must be specified." Condition=" '$(MauiVersion)' == '' and '$(MauiUseLocalPacks)' != 'true' " /> |
52 | | - <PropertyGroup> |
53 | | - <_TempDirectory>$(DotNetPreviewPath)..\.xa-workload-temp-$([System.IO.Path]::GetRandomFileName())</_TempDirectory> |
54 | | - <MauiVersionBand Condition=" '$(MauiVersionBand)' == '' ">$(DotNetSdkManifestsFolder)</MauiVersionBand> |
55 | | - <MauiUseLocalPacks Condition=" '$(MauiUseLocalPacks)' == '' ">false</MauiUseLocalPacks> |
56 | | - <MauiSourcePath Condition=" '$(MauiSourcePath)' == '' ">$(XamarinAndroidSourcePath)..\maui</MauiSourcePath> |
57 | | - <MauiPackagePath Condition=" '$(MauiPackagePath)' == '' ">$(MauiSourcePath)\artifacts</MauiPackagePath> |
58 | | - <MauiWorkloadToInstall Condition=" '$(MauiWorkloadToInstall)' == '' ">maui-android</MauiWorkloadToInstall> |
59 | | - </PropertyGroup> |
| 65 | + |
60 | 66 | <MakeDir Directories="$(_TempDirectory)" /> |
61 | 67 |
|
62 | 68 | <!-- Restore or extract WorkloadManifest.* files--> |
|
0 commit comments