Added a solution for publish profiles.