Closed oskargargas closed 9 months ago
Same issue here.
I'm still trying to understand this issue. MddBootstrap.h
resides in the Windows App SDK. And I can see the file in build\NugetPackages\Microsoft.WindowsAppSDK.1.4.231008000\include
I'm not sure why this directory isn't included when building.
@deevus I've finally managed to make it working. Thou not sure which step was the fix.
your-app-name (workspace)
as your Run & Debug targetSwift: Build Path
and Cmake: Build Directory
and direct them to the same place (build
, and ${workspaceFolder}/build
in my case)@deevus I've finally managed to make it working. Thou not sure which step was the fix.
- Make sure that you have VSCode workspace open
- Select
your-app-name (workspace)
as your Run & Debug target- In VSCode settings chachk
Swift: Build Path
andCmake: Build Directory
and direct them to the same place (build
, and${workspaceFolder}/build
in my case)- Some additional notes: https://gist.github.com/oskargargas/1a9b925bdbc486ffc96ee4d82fac66a5
- After setting all above manually remove all build folders and retry
Could you be a bit more explicit in your instructions?
Where do you find the Swift: Build Path
and Cmake: Build Directory
settings?
Could you be a bit more explicit in your instructions?
Where do you find the
Swift: Build Path
andCmake: Build Directory
settings?
I mean VScode settings, to be exact (put those in settings search window in VSCode):
swift.buildPath
cmake.buildDirectory
But I actually don't think that those matter. I've reset those settings yesterday.
Be sure to:
Developer Command Prompt
or Developer Power Shell
cd
into project directory (for me: cd ~\Developer\windows-samples
)code .
project-name.code-workspace
file Open Worskpace
button in bottom rightlaunch.json
workspaceFolder
variable as I did here: https://github.com/thebrowsercompany/windows-samples/pull/12I think this issue should be fixed now with #13 . let me know if you are still having build issues!
Hi!
Thanks for opensourcing this great project and leading the way into Swift Windows development. It motivated me to kickstart a side project that was long overdue.
Going to the issue. I have a problem building, running and debugging from VSCode. Command line builds work. I can run the app manually. VSCode build after clicking
Build
in bottom bar CMake menu also works.Run and Debug
does not. Finishes with an error quoted below.I use Windows 10 Pro. Intel CPU. No VM. Clean install for development purposes. Swift from yours nightly build. I run VSCode form inside Developer PowerShell. What am I doing wrong? :)
Swift
launch.json
Build log: