Skip to content

After updating to 6.1.23 the SetWindowIcon is not available on plain .NET target and VS shows error for Uno targets #347

@xperiandri

Description

@xperiandri

Current behavior

SetWindowIcon is not available for plain .NET target (net9.0)

Expected behavior

SetWindowIcon is generated for all targets

How to reproduce it (as minimally and precisely as possible)

  1. Create a project from the template.
  2. Change to <TargetFrameworks>net9.0-windows10.0.26100;net9.0-browserwasm;net9.0-desktop;net9.0</TargetFrameworks>

Environment

Package Version(s): 6.1.23

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Desktop

Visual Studio:

  • 2022 (version: 17.14.9)

Anything else we need to know?

A clean project from the template displays an error in VS with
<TargetFrameworks>net9.0-windows10.0.26100;net9.0-browserwasm;net9.0-desktop</TargetFrameworks>
and build fails with
<TargetFrameworks>net9.0-windows10.0.26100;net9.0-browserwasm;net9.0-desktop;net9.0</TargetFrameworks>
Image

My solution
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions