As a better alternative (that doesn’t use environment variables at all) you can use:
string DXSDK_DIR = Path.GetFullPath(Path.Combine(EngineDirectory, "Source/ThirdParty/Windows/DirectX"));
As a better alternative (that doesn’t use environment variables at all) you can use:
string DXSDK_DIR = Path.GetFullPath(Path.Combine(EngineDirectory, "Source/ThirdParty/Windows/DirectX"));