Skip to content

.NET6 out of support should be a WARNING, not an ERROR #8566

@tuyen-vuduc

Description

@tuyen-vuduc

Android application type

Classic Xamarin.Android (MonoAndroid13.0, etc.)

Affected platform version

VS 2022 17.8.2

Description

I am a library owner of many Xamarin binding libraries. Recently, I tried to add .NET8-Android as another supported framework to my libraries, it shows this error

error NETSDK1202: The workload 'net6.0-android' is out of support and will not receive security updates in the future.

It's really annoying. .NET6 is out of support, doesn't mean the libraries for it are also discontinued or. The error is not only if .NET6 is included, MonoAndroid has the same problem. Many developers still use my libraries and not ready to move to .NET8 yet, I still want to keep .NET6-android and MonoAndroid as supported frameworks.

If the error above is just a warning, it'll be very great. I can update my libraries to support .NET8 without any problems.

I used to think .NET6 binding libraries will work for .NET7 libraries, but it doesn't. I had to add .NET7 as supported framework for my libraries in the part. If .NET7 libraries will just work for .NET8, I will not upgrade my libraries to support .NET8 yet.

Please try and confirm by checking out my Mapbox for .NET libraries.

Steps to Reproduce

  1. Clone my repo dotnet-binding-utils
  2. Switch to branch dotnet8-issue
  3. Change directory to path-to-your-local-repo/qs/org.jfrog.cardinalcommerce.gradle--cardinalmobilesdk
  4. Run this command in Git Bash (Windows) or Terminal (MacOS) sh build.sh --base-path $PWD

Did you find any workaround?

No. Not add .NET8 support for now

Relevant log output

C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): error NETSDK1202: The workload 'net6.0-android' is out of suppo
rt and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy. [path-to-the-repo\qs\org.jfrog.cardinalcommerce.gradle--cardinalmobilesdk\generated\Org.Jfrog.Cardinalcommerce.Gradle.Cardinalmobilesdk\Org.Jfrog.Cardinalcommerce.Gradle.Cardinalmobilesdk.csp 
roj::TargetFramework=net6.0-android31.0]

Metadata

Metadata

Assignees

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.Area: BindingsIssues in Java Library Binding projects.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions