def METHOD_NAME(self):
    apply_conandata_patches(self)
    if is_msvc(self):
        #==========================
        # TODO: to remove once https://github.com/conan-io/conan/pull/12817 available in conan client
        vcxproj_files = [
            os.path.join(self.source_folder, "_msvc", "zimg", "zimg.vcxproj"),
            os.path.join(self.source_folder, "_msvc", "dll", "dll.vcxproj"),
        ]
        for vcxproj_file in vcxproj_files:
            replace_in_file(
                self, vcxproj_file,
                "<WholeProgramOptimization>true</WholeProgramOptimization>",
                ""
            )
        platform_toolset = MSBuildToolchain(self).toolset
        conantoolchain_props = os.path.join(self.generators_folder, MSBuildToolchain.filename)
        for vcxproj_file in vcxproj_files:
            if Version(self.version) >= "3.0.5":
                replace_in_file(
                    self, vcxproj_file,
                    "<PlatformToolset>v143</PlatformToolset>",
                    f"<PlatformToolset>{platform_toolset}</PlatformToolset>",
                )
            else:
                replace_in_file(
                    self, vcxproj_file,
                    "<PlatformToolset>v142</PlatformToolset>",
                    f"<PlatformToolset>{platform_toolset}</PlatformToolset>",
                )
            replace_in_file(
                self, vcxproj_file,
                "<Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.targets\" />",
                f"<Import Project=\"{conantoolchain_props}\" /><Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.targets\" />",
            )
        #==========================
        msbuild = MSBuild(self)
        msbuild.build_type = self._msbuild_configuration
        msbuild.platform = "Win32" if self.settings.arch == "x86" else msbuild.platform
        msbuild.METHOD_NAME(os.path.join(self.source_folder, "_msvc", "zimg.sln"),
                      targets=["dll" if self.options.shared else "zimg"])
    else:
        autotools = Autotools(self)
        autotools.autoreconf()
        autotools.configure()
        autotools.make()