From 5760bbcc4ec0a203d8abbd5598334e7a76fc3cec Mon Sep 17 00:00:00 2001 From: ahall Date: Sat, 11 Jul 2026 09:01:43 +0100 Subject: [PATCH] fix: suppress NETSDK1198 missing win-AnyCPU.pubxml warning in TodoApp.Uno The Uno WinAppSDK/MSIX packaging pipeline triggers a partial publish-profile lookup during a plain 'dotnet build', warning that win-AnyCPU.pubxml is missing even though this sample never publishes/packages in CI. Suppress it alongside the existing NETSDK1201/NU1507/PRI257 build-only-CI noise. Fixes #542 --- samples/todoapp/TodoApp.Uno/Directory.Build.props | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/todoapp/TodoApp.Uno/Directory.Build.props b/samples/todoapp/TodoApp.Uno/Directory.Build.props index 3e51b4ea..bea9010f 100644 --- a/samples/todoapp/TodoApp.Uno/Directory.Build.props +++ b/samples/todoapp/TodoApp.Uno/Directory.Build.props @@ -9,7 +9,10 @@ NU1507: Warning when there are multiple package sources when using CPM with no source mapping NETSDK1201: Warning that specifying RID won't create self containing app PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk) + NETSDK1198: Warning that a win-AnyCPU.pubxml publish profile wasn't found. Triggered by Uno's + WinAppSDK/MSIX packaging pipeline during a plain build, even though this sample is never + actually published/packaged in CI (build-only, Debug-only CI pipeline). --> - $(NoWarn);NU1507;NETSDK1201;PRI257 + $(NoWarn);NU1507;NETSDK1201;PRI257;NETSDK1198