Skip to content

Commit ad72db3

Browse files
1 parent c60635b commit ad72db3

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

build-tools/create-packs/Microsoft.Android.Ref.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ by projects that use the Microsoft.Android framework in .NET 5.
3131
</PropertyGroup>
3232

3333
<ItemGroup>
34-
<_AndroidRefPackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-netcoreapp3.1\ref\Java.Interop.dll" />
34+
<_AndroidRefPackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-net6.0\ref\Java.Interop.dll" />
3535
<_AndroidRefPackAssemblies Include="$(_MonoAndroidNETOutputDir)ref\Mono.Android.dll" />
3636
<_AndroidRefPackAssemblies Include="$(_MonoAndroidNETOutputDir)ref\Mono.Android.Export.dll" />
3737
<FrameworkListFileClass Include="@(_AndroidRefPackAssemblies->'%(Filename)%(Extension)')" Profile="Android" />

external/Java.Interop

src/Microsoft.Android.Sdk.ILLink/Microsoft.Android.Sdk.ILLink.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99
<ItemGroup>
1010
<PackageReference Include="Microsoft.NET.ILLink" Version="$(MicrosoftNETILLinkTasksPackageVersion)" />
11-
<ProjectReference Include="..\..\external\Java.Interop\src\Java.Interop.Export\Java.Interop.Export.csproj" SkipGetTargetFrameworkProperties="true" AdditionalProperties="TargetFramework=netcoreapp3.1" />
11+
<ProjectReference Include="..\..\external\Java.Interop\src\Java.Interop.Export\Java.Interop.Export.csproj" />
1212

1313
<Compile Include="..\Xamarin.Android.Build.Tasks\obj\$(Configuration)\Profile.g.cs" Link="Profile.g.cs" />
1414

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Xamarin.ProjectTools.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
<ProjectReference Include="..\..\..\..\external\xamarin-android-tools\src\Xamarin.Android.Tools.AndroidSdk\Xamarin.Android.Tools.AndroidSdk.csproj">
9292
<Project>{E34BCFA0-CAA4-412C-AA1C-75DB8D67D157}</Project>
9393
<Name>Xamarin.Android.Tools.AndroidSdk</Name>
94+
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
95+
<AdditionalProperties>TargetFramework=netstandard2.0</AdditionalProperties>
9496
</ProjectReference>
9597
<ProjectReference Include="..\..\..\..\tools\vswhere\vswhere.csproj">
9698
<Project>{dbdc804f-8406-4f5e-83c6-720cb0cb6c6f}</Project>

tools/xabuild/XABuild.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ static void CreateConfig (XABuildPaths paths)
119119
xml.Load (reader);
120120

121121
var toolsets = xml.SelectSingleNode ("configuration/msbuildToolsets/toolset");
122+
SetProperty (toolsets, "XABuild", "true"); // Enables MSBuild .targets to check for xabuild
122123
SetProperty (toolsets, "VsInstallRoot", paths.VsInstallRoot);
123124
SetProperty (toolsets, "MSBuildToolsPath", paths.MSBuildBin);
124125
SetProperty (toolsets, "MSBuildToolsPath32", paths.MSBuildBin);

0 commit comments

Comments
 (0)