A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hi @Manjunath Vadigeri ,
I’ve looked into your issue and was able to recreate the exact NETSDK1112 error when building a .NET MAUI Windows app targeting net9.0-windows10.0.19041.0. Here’s what’s happening:
Why is this error thrown?
It happens because your project is doing a self-contained publish. MSBuild tries to include the full .NET runtime for win-x64, but for .NET 9 the required runtime pack (Microsoft.NETCore.App.Runtime.Mono.win-x64) hasn’t been published yet, so it can’t download it — hence NETSDK1112.
Shouldn’t Visual Studio workloads provide this runtime pack?
Not in this case. The workloads you installed (.NET Multi-platform App UI and .NET desktop development) only install the SDKs and framework-dependent runtime components, not all self-contained runtime packs. Since the .NET 9 win-x64 runtime pack isn’t available yet, the workloads alone don’t help.
Is there an extra SDK or workload needed?
No, there isn’t one right now. This is purely due to a missing runtime pack for .NET 9 self-contained Windows builds. Once Microsoft releases it, self-contained publishing will work as expected.
I hope this clarifies! Let me know if you have any question!