اگر ویژوال استودیو 2022 رو به آخرین نسخه آپدیت کرده باشید احتمالا با مشکل Duplicate در پروژه هایی که از source generator استفاده میکنند یا کتابخانه هایی مانند Refit مواجه شوید. برای حل این مشکل یک فایل global.json در پوشه ای که فایل Solution پروژه قرار دارد ایجاد کنید و محتوای آن را نسخه قبلی دات نت (که بدون مشکل کار میکرد) قرار دهید.
{ "sdk": { "version": "6.0.104", "rollForward": "disable" } }
نمونه ای خطا: Duplicate 'global::System.Obsolete' attribute