How to develop Power App Code Apps in WSL in Windows
⚠️ This post is outdated! Check out the updated guide: Getting Power Apps Code Apps working on WSL which covers .NET SDK 10.0 and the essential secret service backend configuration.
Steps needed to develop Power Apps Code Apps in Windows WSL (my coding place of choice). This is a note to myself for when I re-install WSL or Windows 😊
Install WSL2
wsl --list --online (to see if there's anything fun)
wsl --install Ubuntu
Install git, build-essential, gh
sudo apt install libcurl4-openssl-dev (to fix git over https)
Install dotnet
sudo add-apt-repository ppa:dotnet/backports
sudo apt-get update && sudo apt-get install -y dotnet-sdk-9.0 (I also did 8)
Install pac
dotnet tool install --global Microsoft.PowerApps.CLI.Tool
pac auth create --deviceCode
Ready to go!