'Duplicate Page items were included' error message after install Syncfusion nuget

Hello,

I have a WinUI 3 project with NET 5. The project was generated with Windows Template Studio for WinUI. 

Before I install Syncfusion.Grid.WinUI nuget the project runs well, but after install the nuget, I get this error message:

syncerr-003.jpg Severity Code Description Project File Line Suppression State

Error NETSDK1022 Duplicate 'Page' items were included. The .NET SDK includes 'Page' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultPageItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Styles\Page.xaml'; 'Styles\TextBlock.xaml'; 'Styles\_FontSizes.xaml'; 'Styles\_Thickness.xaml'; 'Views\ContentGridDetailPage.xaml'; 'Views\ContentGridPage.xaml'; 'Views\DataGridPage.xaml'; 'Views\ListDetailsDetailControl.xaml'; 'Views\ListDetailsPage.xaml'; 'Views\MainPage.xaml'; 'Views\SettingsPage.xaml'; 'Views\ShellPage.xaml'; 'Views\WebViewPage.xaml' 

Can you help me please how can I solve this? Thank you for help!


7 Replies

SA Sulthan Amanu Syncfusion Team February 2, 2022 06:05 PM UTC

Hi Szl,

We are currently checking the reported issue on our end and we need some more time on this, so we will provide more details on February 3rd

Regards,

Sulthan amanu



SZ SZL replied to Sulthan Amanu February 2, 2022 07:37 PM UTC

Hi,


Thank you, I have some additional information. I can solve the above error with including the following lines to *.csproj file:


<PropertyGroup>

<EnableDefaultPageItems>false</EnableDefaultPageItems>

</PropertyGroup>


After that an another error appear:


Error WMC1012 A project cannot have more than one ApplicationXaml item XamlControlsGallery.DesktopWap 


Reproduce the issue is very easy:


Step 1. Download the official WinUI 3 demo repo:

git clone --single-branch --branch winui3 https://github.com/microsoft/Xaml-Controls-Gallery.git


Step 2. Install the Syncfusion.Grid.WinUI nuget.


Thats all! (with Visual Studio 2022 Community latest version)


Thank you for help!




SA Sulthan Amanu Syncfusion Team February 3, 2022 06:04 PM UTC

Hi Szl,


We are able to reproduce are reported "WMC1012 A project cannot have more than one ApplicationXaml" issue and we need some more time to validate for the reported issue on our end. So we’ll provide the further details on 4th February 2022. We appreciate your patience until then.


Regards,

Sulthan amanu




SZ SZL February 3, 2022 06:29 PM UTC

Thank you for your help! It's completely understandable, I cannot solve it since days. If I can help anything please write a message!



SA Sulthan Amanu Syncfusion Team February 4, 2022 05:54 PM UTC

Hi Szl,


We are analyzed the reported query "Error WMC1012 A project cannot have more than one ApplicationXaml item XamlControlsGallery.DesktopWap ", Issue produced for you can use the Microsoft.ProjectReunion version 0.8.2 assemblies in your project, Syncfusion.Grid.WinUI minimal requirement of version Microsoft.WindowsAppSDK version 1.0.0, you can update your Microsoft.ProjectReunion version 0.8.2 to Microsoft.WindowsAppSDK version 1.0.0 to resolve the issue.


Please let us know if you need any further assistance.


Regards,

Sulthan amanu



SZ SZL replied to Sulthan Amanu February 4, 2022 08:15 PM UTC

Thank you very much, that is a perfect solution! Working well!

Have a nice day!



SA Sulthan Amanu Syncfusion Team February 7, 2022 05:14 AM UTC

Hi Szl,

We are glad to know that your issue has been resolved. Please let us know if you need any other assistance. We will be happy to assist you.

Regards,
Sulthan amanu


Loader.
Up arrow icon