question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot compile for build 17763 (Windows 10 version 1809)

See original GitHub issue

Description

MAUI is meant to be compiled for Windows 10 version 1809, corresponding to de build 17763. https://docs.microsoft.com/en-us/dotnet/maui/supported-platforms

I tried to set TargetFramework to net6.0-windows10.0.17763.0 and got the following error:

Erreur CS0012 Le type ‘Application’ est défini dans un assembly qui n’est pas référencé. Vous devez ajouter une référence à l’assembly ‘Microsoft.WinUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=de31ebe4ad15742b’. MauiApp2 (net6.0-windows10.0.17763.0) C:\Tests\MauiApp2\Platforms\Windows\App.xaml.cs 11 Actif

Steps to Reproduce

  1. Create a new MAUI App
  2. Change target framework to net6.0-windows10.0.17763.0
  3. Build

dotnet --version

  • 6.0.400-preview.22330.6
  • 6.0.400

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10 1809

Did you find any workaround?

No response

Relevant log output

Erreur	CS0012	Le type 'Application' est défini dans un assembly qui n'est pas référencé. Vous devez ajouter une référence à l'assembly 'Microsoft.WinUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=de31ebe4ad15742b'.	MauiApp2 (net6.0-windows10.0.17763.0)	C:\Tests\MauiApp2\Platforms\Windows\App.xaml.cs	11	Actif

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MagicAndre1981commented, Aug 20, 2022

TargetPlatform is the toolkit/SDK version used to compile the app.

0reactions
sinsedrixcommented, Aug 19, 2022

Ok, I just found confusing to have TargetPlatform greater than TargetPlatformMinVersion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating windows failing, stuck on version 10.0.17763 ...
I'm attempting to pass along an old laptop to another member of my family, but I'm unable to update to the latest version...
Read more >
May 9, 2023—KB5026362 (OS Build 17763.4377)
For an overview of Windows 10, version 1809, see its update history page. Highlights. This update addresses issues that affect the 32-bit ...
Read more >
May 10, 2022—KB5013941 (OS Build 17763.2928)
Uninstall and reinstall any recently added language packs. For instructions, see Manage the input and display language settings in Windows 10.
Read more >
January 10, 2023—KB5022286 (OS Build 17763.3887)
This update makes quality improvements to the servicing stack, which is the component that installs Windows updates. Servicing stack updates ( ...
Read more >
July 11, 2023—KB5028168 (OS Build 17763.4645)
For an overview of Windows 10, version 1809, see its update history page. ... This issue occurs after you install updates dated January...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found