[Core] Cache assembly references returned by msbuild