Skip to content

Commit 097742b

Browse files
[build] fix generate and publish BAR manifest step (#10685)
This failed with: Microsoft.NET.TargetFrameworkInference.targets(188,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 11.0. Either target .NET 10.0 or lower, or use a version of the .NET SDK that supports .NET 11.0. Download the .NET SDK from https://aka.ms/dotnet/download This step doesn't *need* to use .NET 11, so... I think we can use `$(DotNetStableTargetFramework)` in this project to avoid this problem for now.
1 parent 3595451 commit 097742b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ core workload SDK packs imported by WorkloadManifest.targets.
1111
<Sdk Name="Microsoft.DotNet.SharedFramework.Sdk" Version="$(MicrosoftDotNetBuildTasksFeedPackageVersion)" />
1212
<UsingTask AssemblyFile="$(BootstrapTasksAssembly)" TaskName="Xamarin.Android.Tools.BootstrapTasks.GenerateUnixFilePermissions" />
1313

14+
<PropertyGroup>
15+
<!-- Use stable TFM since CI only has the stable .NET SDK installed -->
16+
<TargetFramework>$(DotNetStableTargetFramework)</TargetFramework>
17+
</PropertyGroup>
18+
1419
<PropertyGroup>
1520
<PackageId>Microsoft.Android.Sdk.$(HostOS)</PackageId>
1621
<OverridePackageId>$(PackageId)</OverridePackageId>

0 commit comments

Comments
 (0)