56 строки
3.1 KiB
XML
56 строки
3.1 KiB
XML
<!--
|
|
***********************************************************************************************
|
|
Microsoft.Android.Ref.proj
|
|
|
|
This project file is used to create the Microsoft.Android.Ref.[API] NuGet, which is the
|
|
targeting pack containing reference assemblies and other compile time assets required
|
|
by projects that use the Microsoft.Android framework in .NET 6+.
|
|
***********************************************************************************************
|
|
-->
|
|
<Project Sdk="Microsoft.Build.NoTargets">
|
|
|
|
<PropertyGroup>
|
|
<PackageId>Microsoft.Android.Ref.$(AndroidApiLevel)</PackageId>
|
|
<Description>Microsoft.Android reference assemblies for API $(AndroidApiLevel). Please do not reference directly.</Description>
|
|
<_AndroidRefPackAssemblyPath>ref\$(DotNetTargetFramework)</_AndroidRefPackAssemblyPath>
|
|
<_AndroidRefPackAnalyzersPath>analyzers\dotnet\cs</_AndroidRefPackAnalyzersPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<BeforePack>
|
|
_GetTargetingPackItems;
|
|
_GetDefaultPackageVersion;
|
|
_GenerateFrameworkListFile;
|
|
$(BeforePack);
|
|
</BeforePack>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="_GetTargetingPackItems"
|
|
DependsOnTargets="_GetLicense">
|
|
<PropertyGroup>
|
|
<FrameworkListFile Condition="'$(FrameworkListFile)' == ''">$(IntermediateOutputPath)FrameworkList.xml</FrameworkListFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<_AndroidRefPackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-$(JavaInteropTargetFrameworkVersion)\ref\Java.Interop.dll" />
|
|
<_AndroidRefPackAssemblies Include="$(_MonoAndroidNETDefaultOutDir)ref\Mono.Android.dll" />
|
|
<_AndroidRefPackAssemblies Include="$(_MonoAndroidNETDefaultOutDir)ref\Mono.Android.Runtime.dll" />
|
|
<!-- Always include stable Mono.Android.Export.dll -->
|
|
<_AndroidRefPackAssemblies Include="$(_MonoAndroidNETOutputRoot)$(AndroidLatestStableApiLevel)\ref\Mono.Android.Export.dll" />
|
|
<_AndroidRefPackAnalyzers Include="$(MicrosoftAndroidSdkAnalysisOutDir)Microsoft.Android.Sdk.Analysis.dll" />
|
|
<FrameworkListFileClass Include="@(_AndroidRefPackAssemblies->'%(Filename)%(Extension)')" Profile="Android" />
|
|
<FrameworkListFileClass Include="@(_AndroidRefPackAnalyzers->'%(Filename)%(Extension)')" Profile="Android" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<_PackageFiles Include="@(_AndroidRefPackAssemblies)" PackagePath="$(_AndroidRefPackAssemblyPath)" TargetPath="$(_AndroidRefPackAssemblyPath)" />
|
|
<_PackageFiles Include="@(_AndroidRefPackAnalyzers)" PackagePath="$(_AndroidRefPackAnalyzersPath)" TargetPath="$(_AndroidRefPackAnalyzersPath)" />
|
|
<_PackageFiles Include="$(_MonoAndroidNETDefaultOutDir)Java.Interop.xml" PackagePath="$(_AndroidRefPackAssemblyPath)" />
|
|
<_PackageFiles Include="$(_MonoAndroidNETDefaultOutDir)Mono.Android.xml" PackagePath="$(_AndroidRefPackAssemblyPath)" />
|
|
<_PackageFiles Include="$(_MonoAndroidNETDefaultOutDir)mono.android.jar" PackagePath="$(_AndroidRefPackAssemblyPath)" />
|
|
<_PackageFiles Include="$(_MonoAndroidNETDefaultOutDir)mono.android.dex" PackagePath="$(_AndroidRefPackAssemblyPath)" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|