Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Things to note:
</PropertyGroup>
<ItemGroup>
<SdkSupportedTargetPlatformVersion Include="21.0" />
<EolWorkload Include="net6.0-android" Url="https://aka.ms/maui-support-policy" />
<EolWorkload Include="net$(TargetFrameworkVersion.TrimStart('vV'))-android" Url="https://aka.ms/maui-support-policy" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</ItemGroup>
<Target Name="_ClearMissingWorkloads">
<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ public void SettingCombinations (bool isRelease, bool useInterpreter, bool publi
}

[Test]
public void EolFrameworks()
public void EolFrameworks ([Values ("net6.0-android", "net7.0-android")] string targetFramework)
{
var library = new XamarinAndroidLibraryProject () {
TargetFramework = "net6.0-android",
TargetFramework = targetFramework,
EnableDefaultItems = true,
};
var builder = CreateApkBuilder ();
builder.ThrowOnBuildFailure = false;
Assert.IsFalse (builder.Restore (library), $"{library.ProjectName} restore should fail");
Assert.IsTrue (StringAssertEx.ContainsText (builder.LastBuildOutput, "NETSDK1202"), $"{builder.BuildLogFile} should have NETSDK1202.");
Assert.IsTrue (StringAssertEx.ContainsText (builder.LastBuildOutput, $"NETSDK1202: The workload '{targetFramework}' is out of support"), $"{builder.BuildLogFile} should have NETSDK1202.");
}

[Test]
Expand Down