Use VS2017 to publish WebAPI , get stuck in `preparing profile` December 19, 2023 by Tarik Go to your project folder ang go to “Properties\PublishProfile” and delete all profiles. Then try to publish again.