microsoft / WindowsAppSDK-Samples

Feature samples for the Windows App SDK
MIT License
685 stars 217 forks source link

Error While Trying to Build the DWriteCoreGallery Solution #336

Closed supthos closed 2 months ago

supthos commented 2 months ago

I have installed the latest NuGet packages for: Microsoft.Windows.ImplementationLibrary 1.0.240122.1 Microsoft.Windows.SDK.BuildTools 10.0.22621.3233 Microsoft.WindowsAppSDK 1.5.240404000

In my Visual Studio Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.6 IDE.

I cloned the WindowsAppSDK-Samples repository with Git. I opened the DWriteCoreGallery solution in my Visual Studio. I did the following two things:

But whenever I try to Build the Solution, I get the following two errors: Severity: Error Code:
Description: This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Windows.ImplementationLibrary.1.0.220914.1\build\native\Microsoft.Windows.ImplementationLibrary.targets. Project: DWriteCoreGallery File: C:**REDACTED**\source\repos\WindowsAppSDK-Samples\Samples\TextRendering\cpp-win32\DWriteCoreGallery\DWriteCoreGallery.vcxproj Line: 296 Suppression State
Details

Severity: Error Code: MSB3774 Description: Could not find SDK "Microsoft.UniversalCRT.Debug, Version=10.0.19041.0". Project: DWriteCoreGallery (packaging) File: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets Line: 2659 Suppression State
Details

Can someone help me out? I need to learn about DWriteCore, among other things in order to continue with my project. I need some guidance in Developing Software with the Windows App SDK, the WinUI 3, and the C++ WinRT. The documentation is disparate and confusing, and trying to apprehend all the intricacies of these libraries is extremely overwhelming. So, any resources that present the information needed to successfully navigate these libraries in an organized manner are also welcome. Not just tips, and bits and pieces floating in a sea of arcane hypertext links that make it impossible to effectively compartmentalize the information needed to Successfully Develop Software.... FOR YOUR OWN OPERATING SYSTEM!!!!! It's incredible... Anyway... What can I do?

supthos commented 2 months ago

Please, don't tell me I'm just gonna have to do a Spirit Bomb to kill Frieza...

supthos commented 2 months ago

Update: I just installed the older package versions in the project and it built. Still, it should compile with the latest stable releases. Shouldn't it?