Prerequisites
Before building the project, ensure you have the following installed:Visual Studio 2022 or later
The project uses Visual Studio 2022 (v143 platform toolset) with C++20 language standard. You need:- Visual Studio 2022 or later
- Desktop development with C++ workload
- Windows 10 SDK
- .NET 6.0 SDK (for ConcurrencyStressTester)
WinFsp SDK
WinFsp must be installed on your system. The build configuration expects WinFsp to be installed at:inc/- WinFsp header fileslib/- WinFsp library files (winfsp-x86.lib, winfsp-x64.lib)
Build configuration
The solution fileWinFsp-MemFs-Extended.sln contains four projects:
- WinFsp-MemFs-Extended - Main RAM disk application (C++)
- RandomFilesTester - File creation testing utility (C++)
- ConcurrencyStressTester - Multithreaded stress testing tool (C#)
- Winfsp-Fsbench - File system benchmarking utility (C++)
Supported platforms
You can build for both x86 and x64 architectures:- Win32 (x86) - 32-bit builds
- x64 - 64-bit builds
Build configurations
- Debug - Development builds with debug information
- Release - Optimized builds for production use
Building the project
Using Visual Studio
- Open
WinFsp-MemFs-Extended.slnin Visual Studio - Select your desired configuration (Debug or Release)
- Select your target platform (x64 or Win32)
- Build the solution:
- Press
Ctrl+Shift+B, or - Select Build > Build Solution from the menu
- Press
Using MSBuild command line
You can also build from the command line using MSBuild:Output files
After a successful build, you’ll find the executables in the following locations:Main application
- Debug builds:
x64/Debug/WinFsp-MemFs-Extended.exeorDebug/WinFsp-MemFs-Extended.exe - Release x64:
x64/Release/memefs-x64.exe - Release x86:
Release/memefs-x86.exe
memefs-x64 and memefs-x86) for easier identification.
Test utilities
- RandomFilesTester:
x64/[Configuration]/RandomFilesTester.exe - ConcurrencyStressTester:
ConcurrencyStressTester/bin/[Configuration]/net6.0/ConcurrencyStressTester.exe - Winfsp-Fsbench:
x64/[Configuration]/Winfsp-Fsbench.exe
Troubleshooting
WinFsp headers not found
If you get errors about missing WinFsp headers:- Verify WinFsp is installed at
C:\Program Files (x86)\WinFsp - Check that the WinFsp SDK was installed (not just the runtime)
- Update the include paths in the project properties if WinFsp is in a different location
Platform toolset errors
If you see errors about platform toolset v143:- Install Visual Studio 2022 or update your existing installation
- Or modify the
.vcxprojfiles to use your installed toolset (e.g., v142 for VS 2019)
.NET SDK errors
If ConcurrencyStressTester fails to build:- Install .NET 6.0 SDK or later
- Or exclude the ConcurrencyStressTester project from the build