Michal Strehovsky 4/19/2021

Building a universal Windows 7/Windows 10 .NET EXE

Read Original

This article details a solution for building a universal .NET executable compatible with both Windows 7 (which ships with .NET 3.5) and Windows 10 (with .NET 4.x). It explains the challenge of CLR versioning and presents a method using a TLS callback written in C to set a critical environment variable before the CLR loads, allowing the same binary to run on both systems without external configuration files or scripts.

Building a universal Windows 7/Windows 10 .NET EXE

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet