[Core] Generate the BuildVariables.cs files in the msbuild project