r/PiCodingAgent • u/Think-nothing-210 • Sep 18 '26
Question Sandbox on Windows
Heard a lot about Pi and wanted to try it out. For Unix environments there seem to be quite a few options for OS-level sandboxing. For pure Windows though I can't find much that actually enforces it.
Are there any options I'm missing?
I mostly want to use Pi for C#/.NET development. I could set up WSL2 but I'd rather avoid that.
Codex supports Windows Sandbox for isolation on Windows. Has anyone tried getting something like that working with Pi?
1
Upvotes
View all comments
Show parent comment
1
u/repolevedd Sep 18 '26
I can’t say much about how Visual Studio behaves specifically, since I use VS Code because of its WSL2 integration, but there’s a potential gotcha worth mentioning. If you plan to keep using Visual Studio, I don’t think moving everything inside WSL2 would be very convenient. From the Windows side, you end up with an unusual, very long path, which could potentially cause some bugs.
It’s probably simpler to keep the projects on Windows and mount their directories into WSL. They’re already mounted there anyway, so there’s no real isolation from Windows. The only issue is that the Windows drive paths are long, but you can bind-mount them however you want.
If you’re going to stop using Visual Studio entirely and build the projects with the dotnet SDK, then yes, it makes sense to work entirely inside WSL.
P.S. Sorry, I reread my message and it was pretty awkward. Please excuse my English.