@@ -4,7 +4,7 @@ Microsoft.Android.Runtime.proj
4
4
5
5
This project file is used to create Microsoft.Android.Runtime.[Mono|NativeAOT|etc.].[API].[RID] NuGets, which are
6
6
runtime packs that contain the assets required for a self-contained publish of
7
- projects that use the Microsoft.Android framework in .NET 6+.
7
+ projects that use the Microsoft.Android.Runtimes framework in .NET 6+.
8
8
***********************************************************************************************
9
9
-->
10
10
<Project Sdk =" Microsoft.Build.NoTargets" >
@@ -19,6 +19,8 @@ projects that use the Microsoft.Android framework in .NET 6+.
19
19
<PackageId >Microsoft.Android.Runtime.$(AndroidRuntime).$(AndroidApiLevel).$(AndroidRID)</PackageId >
20
20
<OverridePackageId >$(PackageId)</OverridePackageId >
21
21
<PlatformPackageType >RuntimePack</PlatformPackageType >
22
+ <SharedFrameworkName >Microsoft.Android.Runtimes</SharedFrameworkName >
23
+ <SharedFrameworkFriendlyName >.NET $(DotNetTargetFrameworkVersion) - $(SharedFrameworkName)</SharedFrameworkFriendlyName >
22
24
<Description >Microsoft.Android runtime components for API $(AndroidApiLevel). Please do not reference directly.</Description >
23
25
<_AndroidRuntimePackAssemblyPath >runtimes/$(AndroidRID)/lib/$(DotNetTargetFramework)</_AndroidRuntimePackAssemblyPath >
24
26
<_AndroidRuntimePackNativePath >runtimes/$(AndroidRID)/native</_AndroidRuntimePackNativePath >
@@ -47,22 +49,6 @@ projects that use the Microsoft.Android framework in .NET 6+.
47
49
<_RuntimeFlavorDirName Condition =" '$(AndroidRuntime)' == 'Mono' Or '$(AndroidRuntime)' == '' " >mono</_RuntimeFlavorDirName >
48
50
</PropertyGroup >
49
51
50
- <ItemGroup >
51
- <_AndroidRuntimePackAssemblies Include =" $(_MonoAndroidNETDefaultOutDir)Java.Interop.dll" />
52
- <_AndroidRuntimePackAssemblies Include =" $(_MonoAndroidNETDefaultOutDir)Mono.Android.dll" />
53
- <_AndroidRuntimePackAssemblies Include =" $(_MonoAndroidNETDefaultOutDir)Mono.Android.Runtime.dll" />
54
- <!-- Always include stable versions of the following assemblies -->
55
- <_AndroidRuntimePackAssemblies
56
- Include =" $(_MonoAndroidNETOutputRoot)$(AndroidLatestStableApiLevel)\Microsoft.Android.Runtime.NativeAOT.dll"
57
- Condition =" '$(AndroidRuntime)' == 'NativeAOT' "
58
- />
59
- <_AndroidRuntimePackAssemblies
60
- Include =" $(_MonoAndroidNETOutputRoot)$(AndroidLatestStableApiLevel)\System.IO.Hashing.dll"
61
- NoSymbols =" true"
62
- />
63
- <_AndroidRuntimePackAssemblies Include =" $(_MonoAndroidNETOutputRoot)$(AndroidLatestStableApiLevel)\Mono.Android.Export.dll" />
64
- </ItemGroup >
65
-
66
52
<ItemGroup Condition =" '$(AndroidRuntime)' == 'CoreCLR' " >
67
53
<NativeRuntimeAsset Condition =" Exists('$(NativeRuntimeOutputRootDir)$(_RuntimeFlavorDirName)\$(AndroidRID)\libnet-android.debug.so') " Include =" $(NativeRuntimeOutputRootDir)$(_RuntimeFlavorDirName)\$(AndroidRID)\libnet-android.debug.so" />
68
54
<NativeRuntimeAsset Condition =" Exists('$(NativeRuntimeOutputRootDir)$(_RuntimeFlavorDirName)\$(AndroidRID)\libnet-android.release.so') " Include =" $(NativeRuntimeOutputRootDir)$(_RuntimeFlavorDirName)\$(AndroidRID)\libnet-android.release.so" />
@@ -86,6 +72,10 @@ projects that use the Microsoft.Android framework in .NET 6+.
86
72
<NativeRuntimeAsset Condition =" Exists('$(NativeRuntimeOutputRootDir)$(_RuntimeFlavorDirName)\$(AndroidRID)\libarchive-dso-stub.so') " Include =" $(NativeRuntimeOutputRootDir)$(_RuntimeFlavorDirName)\$(AndroidRID)\libarchive-dso-stub.so" />
87
73
</ItemGroup >
88
74
75
+ <ItemGroup Condition =" '$(AndroidRuntime)' == 'NativeAOT' " >
76
+ <_AndroidRuntimePackAssemblies Include =" $(_MonoAndroidNETOutputRoot)$(AndroidLatestStableApiLevel)\Microsoft.Android.Runtime.NativeAOT.dll" />
77
+ </ItemGroup >
78
+
89
79
<ItemGroup >
90
80
<FrameworkListFileClass Include =" @(_AndroidRuntimePackAssemblies->'%(Filename)%(Extension)')" Profile =" Android" />
91
81
<FrameworkListFileClass Include =" @(NativeRuntimeAsset->'%(Filename)%(Extension)')" Profile =" Android" />
0 commit comments