thebrowsercompany / windows-samples

Sample Apps for Swift on Windows
MIT License
262 stars 13 forks source link

Microsoft.WindowsAppRuntime.Bootstrap.dll could not be found #10

Closed stefanspringer1 closed 7 months ago

stefanspringer1 commented 8 months ago

When starting WinUI3AnimationsPreview.exe, I get a message that Microsoft.WindowsAppRuntime.Bootstrap.dll could not be found. When building, there is a message that Microsoft.WindowsAppRuntime.Bootstrap.dll is being copied.

oskargargas commented 8 months ago

@stefanspringer1 take a look at: https://github.com/thebrowsercompany/windows-samples/issues/5#issuecomment-1870159426

stefanspringer1 commented 8 months ago

I made the error of looking at the message Linking C:\Projekte\windows-samples\build\spm\x86_64-unknown-windows-msvc\debug\WinUI3AnimationsPreview.exe, and could not start from there, but as documented the README , it should be started from windows-samples\build\bin. Sorry for not reading your documentation more carefully!

(A way to find the Microsoft.WindowsAppRuntime.Bootstrap.dll manually is to see what command cmake --preset debug outputs:

Added package 'Microsoft.WindowsAppSDK.1.4.231008000' to folder 'C:\Projekte\windows-samples\build\NugetPackages'

I could find the Bootstrap DLL in C:\Projekte\windows-samples\build\NugetPackages\Microsoft.WindowsAppSDK.1.4.231008000\runtimes\win10-x64\native, but as I already noted, your process works fine.)

Please close the issue. Thanks!