Conan 2 Migration Site
Focus on the package() and package_info() methods. In Conan 2, package_info() is crucial. You must define self.cpp_info.libs and self.cpp_info.includedirs accurately so consumers can link against your new package.
Before making the jump, update your recipes while still using Conan 1.x. Many 2.0 features were backported to later 1.x versions (starting from 1.36) to allow for an incremental transition. conan 2 migration
: Replace from conans import ... with from conan import ... (note the singular "conan"). Focus on the package() and package_info() methods
: Update conanfile.py syntax to be compatible with Conan 2.0. This includes replacing conans imports with the new conan.tools.xxxxx namespace. conan 2 migration


