swift package build
error: toolchain is invalid: could not find link
cc: @compnerd
SwiftPM needs to run in a developer command prompt (instead of regular CMD or PowerShell), so this is expected (though unfortunate).
I tried to solve this in Use `vswhere` to find MSVC tools by stevapple · Pull Request #6120 · apple/swift-package-manager · GitHub, but looks like @compnerd has different opinion…
2 Likes