I'm guessing we need to be looking at the variable similar to changes made in https://github.com/dotnet/msbuild/pull/9207.