|
58 | 58 |
|
59 | 59 | <Target Name="_CreateDefaultRefPack" |
60 | 60 | Condition=" '$(AndroidLatestStableApiLevel)' != '$(AndroidDefaultTargetDotnetApiLevel)' and Exists('$(_MonoAndroidNETOutputRoot)$(DotNetAndroidTargetFramework)$(AndroidDefaultTargetDotnetApiLevel)\Mono.Android.dll') "> |
61 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidDefaultTargetDotnetApiLevel) "$(MSBuildThisFileDirectory)Microsoft.Android.Ref.proj"" /> |
| 61 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidDefaultTargetDotnetApiLevel) "$(MSBuildThisFileDirectory)Microsoft.Android.Ref.proj"" /> |
62 | 62 | </Target> |
63 | 63 |
|
64 | 64 | <Target Name="_CreatePreviewPacks" |
65 | 65 | Condition=" '$(AndroidLatestStableApiLevel)' != '$(AndroidLatestUnstableApiLevel)' and Exists('$(_MonoAndroidNETOutputRoot)$(DotNetAndroidTargetFramework)$(AndroidLatestUnstableApiLevel)\Mono.Android.dll') "> |
66 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-arm "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
67 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-arm64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
68 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-x86 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
69 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-x64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
70 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) "$(MSBuildThisFileDirectory)Microsoft.Android.Ref.proj"" /> |
| 66 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-arm "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 67 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-arm64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 68 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-x86 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 69 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) -p:AndroidRID=android-x64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 70 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidApiLevel=$(AndroidLatestUnstableApiLevel) "$(MSBuildThisFileDirectory)Microsoft.Android.Ref.proj"" /> |
71 | 71 | </Target> |
72 | 72 |
|
73 | 73 | <Target Name="CreateAllPacks" |
74 | 74 | DependsOnTargets="DeleteExtractedWorkloadPacks;_SetGlobalProperties;GetXAVersionInfo;_CleanNuGetDirectory;_CreatePreviewPacks;_CreateDefaultRefPack"> |
75 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidRID=android-arm "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
76 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidRID=android-arm64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
77 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidRID=android-x86 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
78 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:AndroidRID=android-x64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
79 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') "$(MSBuildThisFileDirectory)Microsoft.Android.Ref.proj"" /> |
80 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:HostOS=Linux "$(MSBuildThisFileDirectory)Microsoft.Android.Sdk.proj"" Condition=" '$(HostOS)' == 'Linux' " /> |
81 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:HostOS=Darwin "$(MSBuildThisFileDirectory)Microsoft.Android.Sdk.proj"" Condition=" '$(HostOS)' == 'Darwin' " /> |
82 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') -p:HostOS=Windows "$(MSBuildThisFileDirectory)Microsoft.Android.Sdk.proj"" Condition=" '$(HostOS)' != 'Linux' " /> <!-- Windows pack should be built both Windows and macOS --> |
83 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') "$(MSBuildThisFileDirectory)Microsoft.NET.Sdk.Android.proj"" /> |
84 | | - <Exec Command="dotnet pack @(_GlobalProperties, ' ') "$(XamarinAndroidSourcePath)src\Microsoft.Android.Templates\Microsoft.Android.Templates.csproj"" /> |
| 75 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidRID=android-arm "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 76 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidRID=android-arm64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 77 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidRID=android-x86 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 78 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:AndroidRID=android-x64 "$(MSBuildThisFileDirectory)Microsoft.Android.Runtime.proj"" /> |
| 79 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') "$(MSBuildThisFileDirectory)Microsoft.Android.Ref.proj"" /> |
| 80 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:HostOS=Linux "$(MSBuildThisFileDirectory)Microsoft.Android.Sdk.proj"" Condition=" '$(HostOS)' == 'Linux' " /> |
| 81 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:HostOS=Darwin "$(MSBuildThisFileDirectory)Microsoft.Android.Sdk.proj"" Condition=" '$(HostOS)' == 'Darwin' " /> |
| 82 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') -p:HostOS=Windows "$(MSBuildThisFileDirectory)Microsoft.Android.Sdk.proj"" Condition=" '$(HostOS)' != 'Linux' " /> <!-- Windows pack should be built both Windows and macOS --> |
| 83 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') "$(MSBuildThisFileDirectory)Microsoft.NET.Sdk.Android.proj"" /> |
| 84 | + <Exec Command=""$(DotNetPreviewTool)" pack @(_GlobalProperties, ' ') "$(XamarinAndroidSourcePath)src\Microsoft.Android.Templates\Microsoft.Android.Templates.csproj"" /> |
85 | 85 | <ReplaceFileContents |
86 | 86 | SourceFile="vs-workload.in.props" |
87 | 87 | DestinationFile="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\vs-workload.props" |
|
0 commit comments