tocOn this page 8 sections
A Windows VPS works well as a remote Visual Studio workstation. Install Visual Studio on Windows Server with only the workloads you need, connect over RDP, and turn off the IDE's heavier visual effects so the session stays responsive. Your source, builds and debugger live on the server and keep running when you disconnect, so you can resume the same session from any laptop.
Size the VPS for the IDE, not the app
Visual Studio's memory use grows with solution size, open documents and extensions. The app you're building is rarely the constraint. For .NET web or desktop work, plan on at least 4 vCPU and 8 GB RAM. Move to 16 GB for large solutions, C++ builds, or SQL Server running on the same box. Keep 50 GB or more free on C: for the IDE, SDKs, the NuGet cache and build output. Windows Server is a supported OS for Visual Studio, but check the system requirements page for the edition you install. Our Windows VPS for development and testing page covers plan choices for this kind of work.
Install only the workloads you use
In Edge on the VPS, download the Visual Studio bootstrapper (Community, Professional or Enterprise) from Microsoft's download page. You can add workloads from an elevated PowerShell prompt instead of clicking through the installer:
cd $env:USERPROFILE\Downloads
.\vs_community.exe --add Microsoft.VisualStudio.Workload.NetWeb `
--add Microsoft.VisualStudio.Workload.ManagedDesktop `
--includeRecommended --passive --norestart
Other common workload IDs:
- Microsoft.VisualStudio.Workload.NativeDesktop for C++
- Microsoft.VisualStudio.Workload.Data for data tooling
You can add more later from Visual Studio Installer > Modify. After the install, sign in with the account that holds your license. The Community edition has limits on use inside organizations, so read its license terms before a team relies on it.
Make RDP feel local
Most lag over RDP comes from redrawing the screen, not from the CPU.
In the Remote Desktop Connection client (mstsc), adjust these tabs under Show Options:
- Experience: set the connection speed to Detect connection quality automatically, and clear Desktop background and Menu and window animation.
- Display: pick a resolution close to your monitor's native size. Use all my monitors for the remote session helps with code and debugger side by side, but it uses more bandwidth.
Inside Visual Studio, open Tools > Options > Environment > General and clear these three boxes:
- Automatically adjust visual experience based on client performance
- Enable rich client visual experience
- Use hardware graphics acceleration if available (a typical VPS has no GPU)
Restart the IDE after changing these.
Prepare the file system and Git
Clone repositories into a short path such as C:\src. Then enable long path support so deep node_modules or obj trees don't fail:
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name LongPathsEnabled -Value 1 -PropertyType DWORD -Force
git config --system core.longpaths true
Real-time scanning by Microsoft Defender can slow restores and builds noticeably. Exclude only the folders and build tools you control:
Add-MpPreference -ExclusionPath "C:\src", "$env:USERPROFILE\.nuget\packages"
Add-MpPreference -ExclusionProcess "devenv.exe", "MSBuild.exe"
Never exclude Downloads or temp folders. For Git authentication, use the Git Credential Manager that ships with Git for Windows. Alternatively, generate a key with ssh-keygen -t ed25519 and add the public key to your Git host.
Keep long builds alive after you disconnect
Closing the RDP window disconnects your session, and everything in it keeps running. Signing out ends it. Check that no policy closes disconnected sessions. In gpedit.msc, go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits. Set Set time limit for disconnected sessions to Not configured or Never. Run quser to confirm your session shows as Disc rather than disappearing.
Windows Update restarts can also kill an overnight build. Set Active hours under Settings > Windows Update > Advanced options to cover your working window, and install updates on your own schedule.
Test web apps and lock down access
The simplest way to test is a browser inside the RDP session pointed at https://localhost:<port>. To reach the app from your own machine, bind Kestrel to all interfaces and allow only your IP address through the firewall:
New-NetFirewallRule -DisplayName "Dev API 5001" -Direction Inbound `
-Protocol TCP -LocalPort 5001 -RemoteAddress 203.0.113.10 -Action Allow
When you're done testing, remove the rule with Remove-NetFirewallRule -DisplayName "Dev API 5001".
This server now holds source code and credentials, so work through our Windows Server VPS hardening checklist before you rely on it. If you want commits built automatically on the same machine, the next step is an Azure Pipelines agent on the VPS.
Optional: VS Code over SSH
For quick edits from a weak connection, enable OpenSSH Server and use VS Code's Remote-SSH extension alongside full Visual Studio:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Set-Service sshd -StartupType Automatic
Start-Service sshd
Restrict port 22 to your IP the same way as the firewall rule above.
FAQ
Can I run the Android emulator, Docker Desktop or WSL 2 on the VPS?
All three need nested virtualization, because they run their own hypervisor inside the VPS. Run systeminfo and read the Hyper-V Requirements section, or ask support whether your plan exposes virtualization extensions. Without them, these tools fail to start.
Can two developers use Visual Studio on the same VPS?
Yes. Each person gets their own RDP session and profile, and each needs their own Visual Studio license. Windows Server allows two concurrent administrative sessions. Beyond that you need Remote Desktop Services and CALs, as explained in RDP user limits on Windows Server.
Why is IntelliSense slow even though CPU usage is low?
The usual cause is memory pressure. Open Task Manager and check whether available RAM is near zero. If it is, close unused solutions, disable extensions you don't need, or move to a plan with more RAM.
Run this on your own Windows VPS
Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.
Written by the WindowsVPS Team
We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.