I'm currently developing directly on Windows, but my system's a bit of a mess with all the installations and dependencies I've piled up. I'm considering shifting my development environment to Windows Subsystem for Linux (WSL). However, I'm unsure about how to effectively test my applications that need to run on Windows without launching a full Windows virtual machine. A VM seems excessive, and it would slow things down alongside my other processes. How do you all manage this? Do you run a VM, or is there a more efficient workflow that I might not be aware of?
6 Answers
Just run it directly on Windows! You don't necessarily need a VM for testing your Windows applications.
It sounds a bit off. You're using a Windows machine but want to compile in Linux? It might be possible to compile using WSL and then access the final product in Windows, but you might lose some debugging features. Developers usually use WSL to create cross-platform apps, so focusing solely on Windows apps could be a bit niche here.
I get where you’re coming from. WSL is great because it lets you interact with files on the Windows file system. Just develop in Linux and run your Windows tests directly on the host to avoid the hassle of running a VM. If you’re worried about clutter, think about packaging your executables instead of maintaining everything in the host environment.
As a newbie, I'm feelin' you on the clutter issue. Whenever I test my programs, it just feels like my computer gets messier. It's like a little OCD moment! Anyone got tips for cleaning up after tests?
Consider using dev-containers for your projects. They can help manage all installations and dependencies in a clean environment, allowing you to develop in either Linux or Windows and test on a fresh setup. It’s a solid way to keep things organized!
Since you’re already using WSL, which runs on top of Windows, testing shouldn't be too tricky. You can keep developing in WSL and access your files directly in Windows. This way, you can run your tests right from the Windows host without needing a VM. It keeps everything more streamlined!

What sort of clutter are you dealing with? You could write a cleanup script that removes temporary files and junk post-testing to keep your environment tidy!