Skip to content

Conversation

@MartyIX
Copy link
Contributor

@MartyIX MartyIX commented Sep 18, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

On the main branch, WinAppSDK 1.6 is mentiond in the warnings when dotnet build ./Microsoft.Maui.BuildTasks.slnf is run:

main

Restore complete (9,7s)
X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Essentials\src\Essentials.csproj]
X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Essentials\src\Essentials.csproj]
  Controls.Xaml.Design net472 succeeded (2,9s) → artifacts\bin\Controls.Xaml.Design\Debug\net472\Microsoft.Maui.Controls.Xaml.DesignTools.dll
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Core\src\Core.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Core\src\Core.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Core\Controls.Core.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Core\Controls.Core.csproj]
X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics\Graphics.csproj]
X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.6.241114003\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics\Graphics.csproj]

PR

With the PR, dotnet build ./Microsoft.Maui.BuildTasks.slnf does not mention WinAppSdk 1.6:

Restore complete (7,8s)
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Core\src\Core.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Core\src\Core.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Essentials\src\Essentials.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Essentials\src\Essentials.csproj]
  Controls.Xaml.Design net472 succeeded (2,8s) → artifacts\bin\Controls.Xaml.Design\Debug\net472\Microsoft.Maui.Controls.Xaml.DesignTools.dll
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Core\Controls.Core.csproj]
  Controls.Core.Design net472 succeeded (3,5s) → artifacts\bin\Controls.Core.Design\Debug\net472\Microsoft.Maui.Controls.DesignTools.dll
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Core\Controls.Core.csproj]
  Graphics netstandard2.1 succeeded (3,3s) → artifacts\bin\Graphics\Debug\netstandard2.1\Microsoft.Maui.Graphics.dll
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics\Graphics.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics\Graphics.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]
X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.BeforeCommon.targets(31,3): warning MSB4011: "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "X:\.nuget\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.WinUI.props (22,3)". This is most likely a build authoring error. This subsequent import will be ignored. [X:\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]

Issues Fixed

Fixes #31668

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 18, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @@MartyIX! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@MartyIX
Copy link
Contributor Author

MartyIX commented Sep 23, 2025

@mattleibow Does this PR make sense to you?

@MartyIX MartyIX requested a review from mattleibow September 23, 2025 15:32
@mattleibow
Copy link
Member

/rebase

@github-actions github-actions bot force-pushed the feature/2025-09-18-old-winappsdk-warnings branch from 6d308b6 to adfd6ca Compare September 30, 2025 06:46
@mattleibow
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho rmarinho merged commit 11ce8c9 into dotnet:main Oct 5, 2025
129 checks passed
rmarinho added a commit that referenced this pull request Oct 18, 2025
* [Testing] Fix for flaky UITests CookiesCorrectlyLoadWithMultipleWebViews in CI (#31823)

This PR addresses the UI test image failures that occurred in the main
branch and includes updates to improve rendering and test stability
across platforms.

- In the CookiesCorrectlyLoadWithMultipleWebViews test case, I changed
the WebView source to match the cookies.

### Test cases:

- CookiesCorrectlyLoadWithMultipleWebViews

* [iOS] Fix added for Navigation.SetTitleView does not work in ios 26. (#31831)

* [iOS] Fix added for Navigation.SetTitleView does not work in ios 26.

* changes added.

* changed the version condition.

* [testing] Update androidApiLevels for device tests (#31827)

* Update androidApiLevels for device tests

* [ci] Update provisioning of api 36

* Add reference (#31669)

* [Windows, Catalyst] Fix IsPresented=true Not Working on Initial Value in FlyoutPage (#31515)

* mac fix added

* Windows fix added

* test case added

* Update Issue31372.cs

* Update Issue31372.cs

* Update WindowHandler.iOS.cs

* fix updated

* Update WindowHandler.iOS.cs

* Update WindowHandler.iOS.cs

* Update PublicAPI.Shipped.txt

* changes added in UnShipped file

* Temporarily disable flaky WebView tests using FlakyTest attribute (#31868)

* Initial plan

* Temporarily disable flaky WebView tests with FlakyTest attribute

Co-authored-by: rmarinho <[email protected]>

* Add tracking issue link to FlakyTest attributes

Co-authored-by: rmarinho <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: rmarinho <[email protected]>

* Invert NavigationPage UseMauiHandler flag (#31859)

* Update dependencies from https://github.com/dotnet/xharness build 20251004.2 (#31872)

On relative base path root
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 9.0.0-prerelease.25426.1 -> To Version 9.0.0-prerelease.25504.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>

* [release/9.0.1xx-sr12] Fix ProjectList not displaying due to missing BindingContext update in template sample (#31954)

* update ProjectListPage

* Update MauiApp.1.csproj

---------

Co-authored-by: Vignesh-SF3580 <[email protected]>

* [release/9.0.1xx-sr12] [Android] -Picker dialog causes crash when page is popped while dialo… (#31919)

* [Android] -Picker dialog causes crash when page is popped while dialog is open

* removed the dispose call.

* Revert "removed the dispose call."

This reverts commit e1e7a9f.

* removed the dispose call.

* Modified with Dismiss() method.

---------

Co-authored-by: sheiksyedm <[email protected]>

* [release/9.0.1xx-sr12] [iOS] Fix memory leak in CollectionViewHandler2 ItemsLayout PropertyChanged subscription (#31922)

* [release/9.0.1xx-sr12] [Android][Regression] Fixed Entry and Editor AppThemeBinding colors for text and placeholder reset to default on theme change (#31921)

* added snapshots and fix

* removed test cases

* added the test cases and snapshots

* added braces

* added mac and windows snapshots

* added mac and windows snapshots

* added snapshot

---------

Co-authored-by: TamilarasanSF4853 <[email protected]>

* 9.0.120 Release Branding (#31979)

* [release/9.0.1xx-sr12] [ci] Update arcade main (#31987)

* Update arcade

* Don t use internal feeds

---------

Co-authored-by: Rui Marinho <[email protected]>

* Update FlyoutViewHandler.Windows.cs (#32007)

Co-authored-by: devanathan-vaithiyanathan <[email protected]>

---------

Co-authored-by: TamilarasanSF4853 <[email protected]>
Co-authored-by: sheiksyedm <[email protected]>
Co-authored-by: Rui Marinho <[email protected]>
Co-authored-by: MartyIX <[email protected]>
Co-authored-by: devanathan-vaithiyanathan <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: rmarinho <[email protected]>
Co-authored-by: Tim Miller <[email protected]>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vignesh-SF3580 <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] Build warnings mention WinAppSDK 1.6 but the used version is 1.7

4 participants