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.

[Bug] Getting build error when configured with `UseMauiCommunityToolkit()` and targeting the Windows platform

See original GitHub issue

Description

Getting the below-mentioned error when configured with UseMauiCommunityToolkit() initialization and building for the Windows target

Stack Trace

Here is the Build Output log:

Build started… 1>------ Build started: Project: TestApp, Configuration: Debug Any CPU ------ 1>TestApp -> E:\Tasks\Projects\Maui\TestApp\TestApp\bin\Debug\net6.0-windows10.0.19041\win10-x64\TestApp.dll 1>WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry. 1>WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI222: 0x80073b0f - Unspecified error occurred. 1>Done building project “TestApp.csproj” – FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Link to Reproduction Sample

Steps to Reproduce

  1. Create a new .NET MAUI App (Preview 12/Preview 13) and add a reference to the latest release of CommunityToolkit.Maui NuGet package (1.0.0-pre6)
  2. Configure the UseMauiCommunityToolkit() initialization method call in the MauiProgram.cs
  3. Switch the Target platform to Windows (in supported VS2022 Preview IDE) and build the project
  4. Ends up in the build error

Expected Behavior

Build should succeed without any error.

Actual Behavior

Ends up in build error.

Basic Information

  • Version with issue: .NET MAUI Preview 12 or higher and CommunityToolkit.Maui 1.0.0-pre6
  • Last known good version: NA
  • IDE: VS2022 17.1 Preview 3.0 or later
  • Platform Target Frameworks:
    • iOS: NA
    • Android: NA
    • UWP: net6.0-windows10.0.19041
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Workaround

None found so far

Reproduction imagery

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

2reactions
VladislavAntonyukcommented, Feb 16, 2022

It will be fixed with pre7

0reactions
brminnickcommented, Feb 16, 2022

🤦‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot known issues - .NET MAUI
Learn about .NET MAUI known issues and troubleshooting you can do to resolve these issues.
Read more >
ComboBox causes UI to not load when testing in TestFlight
I have a MAUI desktop app that I have built using MAUI and Telerik controls,It runs on Windows Desktop and in Windows deployed...
Read more >
c# - Folder Picker .NET MAUI
I haven't found a way to pick the target folder. Any idea on how it can be achieve either with blazor or xaml...
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