danies8
danies8

Reputation: 11

VS 2022 preview 17. 2 MAUI copyright symbol is not working

I used Visual Studio 2022 preview 17.2 MAUI. I tried to add Copyright symbol to Label and is not working.

<Label Text="symbol of copy right is not working"/>

Exception when Build:

the "xamlctask" task failed unexpectedly (MSB4018)

Upvotes: 1

Views: 545

Answers (2)

Shmiel
Shmiel

Reputation: 1249

I also had this issue and it didn't work even with TextType="Html" until I found that &#x00A9; also returns copyright symbol. And it works on VS 17.6.

Ex:

<Label Text="&#x00A9; 2023"/>

Returns © 2023

Upvotes: 2

Mike Irving
Mike Irving

Reputation: 1630

Use the HTML code

&copy;

So..

<Label Text="&copy; 2022 My Name" TextType="Html" />

Upvotes: 0

Related Questions