Visual Studio Solution User Options subheader
application/octet-stream
Magic Bytes
Offset: 0
51 20 BE FF EF FF FF FF 00 00
The Visual Studio Solution User Options subheader is a proprietary binary format developed by Microsoft for use within its integrated development environment. This file records local workspace customizations, including active breakpoints, window arrangements, and bookmark locations, ensuring a personalized state is restored upon reopening a specific solution. Although considered safe, these files are typically excluded from version control repositories as they contain machine-specific data that may lead to merge conflicts or environment inconsistencies.
Validation Code
How to validate .suo files in Python
Python
def is_suo(file_path: str) -> bool:
"""Check if file is a valid SUO by magic bytes."""
signature = bytes([0x51, 0x20, 0xBE, 0xFF, 0xEF, 0xFF, 0xFF, 0xFF, 0x00, 0x00])
with open(file_path, "rb") as f:
return f.read(10) == signature
How to validate .suo files in Node.js
Node.js
function isSUO(buffer: Buffer): boolean {
const signature = Buffer.from([0x51, 0x20, 0xBE, 0xFF, 0xEF, 0xFF, 0xFF, 0xFF, 0x00, 0x00]);
return buffer.subarray(0, 10).equals(signature);
}
Go
func IsSUO(data []byte) bool {
signature := []byte{0x51, 0x20, 0xBE, 0xFF, 0xEF, 0xFF, 0xFF, 0xFF, 0x00, 0x00}
if len(data) < 10 {
return false
}
return bytes.Equal(data[:10], signature)
}
API Endpoint
GET
/api/v1/suo
curl https://filesignature.org/api/v1/suo