-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate Page Items Error after Upgrading to Version 1.0 Experimental #1209
Comments
I think this is because nuget packages are based on |
Thanks for filing this @ghost1372. I think you'll need to wait for the NuGet packages you're using to update to the new WindowsAppSDK NuGet package. This is definitely a pain, but this rename was coming regardless and would be painful no matter what, so that's why we're trying to start early to give everyone time to update to the new package! We'll work with our ecosystem partners to try to get these other libraries updated! |
@ghost1372 Could you please report bug into Community toolkit? |
@JanRajnoha Done |
After updating to Microsoft.WindowsAppSDK (1.0.0-experimental1) I get the same "Duplicate 'Page' items ..." error IF AND ONLY IF I also install Syncfusion.Grid.WinUI Nuget package (19.2.0.62) which has a dependency on Microsoft.ProjectReunion (0.8.1). |
@MikeHillberg do you think this is XAML related (duplicate 'Page' items)? If we have this problem every time we rev a new version, it seems like having community libraries will be unfeasible since community libraries definitely aren't going to keep up-to-date with the latest library. |
This is not only with Experimental version. I am using Project Reunion 0.8.4.5305616. I created a new C# App (WinUI 3 in Desktop) project with Windows Template Studio. The installed packages include:
|
@capegreg if you look better at dependencies with Microsoft.Xaml.Beahaviors.WinUI.Managed, so you will notice version 2.0.5 is using Win App SDK 1.0 exp1 and version 2.0.6 is using experiment 2, so if you will upgrade to 2.0.5, you will install Windows App SDK 1.0 too |
@JanRajnoha Ah, yes. thank you for pointing that out. Do you see any reason why I should not be able to hold at 2.0.4 and proceed with my development, then update again in the future? |
@capegreg I'm currently using 2.0.4 and don't see ane reason to upgrade... For now, but with winui 1.0 I want to upgrade, but current working version is okay |
WCT 7.1.1-preview3 released based on WASDK 1.0.0-preview3 |
Describe the bug
After Upgrading to Version 1.0 Experimental I get the following error
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: 'MainWindow.xaml' App21 C:\Users\Mahdi\.nuget\packages\microsoft.projectreunion.winui\0.8.0\buildTransitive\Microsoft.WinUI.targets 54
Steps to reproduce the bug
Steps to reproduce the behavior:
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls" Version="7.0.3" />
)Expected behavior
Project Should be Compiled without problem
Screenshots
Version Info
NuGet package version:
Additional context
note that The problem arises when a nuget package is installed (i tested in VS 2019 preview and VS 2022 preview)
The text was updated successfully, but these errors were encountered: