Skip to content

Emit a warning if AndroidHttpClientHandlerType is invalid #7326

@jonpryor

Description

@jonpryor

Android application type

Android for .NET (net6.0-android, etc.)

Affected platform version

.NET 6.0+

Description

See also: PR #7214.

If the $(AndroidHttpClientHandlerType) property is set to an "invalid" value, which can be an "unresolvable" type (Type.GetType() returns null) or a type which has HttpClientHandler as a base class, then the build should emit a warning.

Steps to Reproduce

Did you find any workaround?

PR #7214 has a runtime workaround. However, the warning message it produces is a runtime warning message.

A build-time warning should also be generated.

Relevant log output

No response

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.enhancementProposed change to current functionality.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions