detect-static-dependencies
نگهدارنده dotnet
مهارت وابستگیهای ایستای حساس به آزمون مانند System.DateTime، File، Environment، HttpClient، Console و Process را در کد C# پیدا و ممیزی میکند. جزئیات اجرایی، دامنه و محدودیتهای آن در متن مرجع زیر حفظ شده است. متن مرجع: ACTIVATION PREREQUISITE: the request or discovered target must explicitly identify C#, .NET, `.cs`,
- نسخه فعلی
- نامشخص
- مجوز
- MIT
- دسترسی شبکه
- نامشخص / ارزیابینشده
- وضعیت بررسی
- تأیید نشده
چه مسئلهای را حل میکند؟
نیازهای وابستگیهای ایستای حساس به آزمون مانند System.DateTime، File، Environment، HttpClient، Console و Process را در کد C# پیدا و ممیزی میکند. جزئیات اجرایی، دامنه و محدودیتهای آن در متن مرجع زیر حفظ شده است. متن مرجع: ACTIVATION PREREQUISITE: the request or discovered target must explicitly identify C#, .NET, `.cs`, or `.csproj`; otherwise stay dormant without invoking this skill. USE FOR: locating System.DateTime.Now/UtcNow, System.IO.File/Directory, System.Environment, HttpClient, Console, or Process usage in C#; auditing C# code for hard-to-test framework dependencies; or verifying those C# calls are already abstracted. DO NOT USE FOR: any target lacking the activation prerequisite; generating wrappers (use generate-testability-wrappers); migrating code (use migrate-static-to-wrapper); or general code review را در محدودهٔ تعریفشدهٔ منبع پاسخ میدهد.
چه زمانی مناسب است؟
وقتی وابستگیهای ایستای حساس به آزمون مانند System.DateTime، File، Environment، HttpClient، Console و Process را در کد C# پیدا و ممیزی میکند. جزئیات اجرایی، دامنه و محدودیتهای آن در متن مرجع زیر حفظ شده است. متن مرجع: ACTIVATION PREREQUISITE: the request or discovered target must explicitly identify C#, .NET, `.cs`, or `.csproj`; otherwise stay dormant without invoking this skill. USE FOR: locating System.DateTime.Now/UtcNow, System.IO.File/Directory, System.Environment, HttpClient, Console, or Process usage in C#; auditing C# code for hard-to-test framework dependencies; or verifying those C# calls are already abstracted. DO NOT USE FOR: any target lacking the activation prerequisite; generating wrappers (use generate-testability-wrappers); migrating code (use migrate-static-to-wrapper); or general code review مطرح است و استثنای منبع صدق نمیکند، مهارت را بهکار ببرید. عبارتهای دقیق منبع: ACTIVATION PREREQUISITE: the request or discovered target must explicitly identify C#, .NET, `.cs`, or `.csproj`; otherwise stay dormant without invoking this skill. USE FOR: locating System.DateTime.Now/UtcNow, System.IO.File/Directory, System.Environment, HttpClient, Console, or Process usage in C#; auditing C# code for hard-to-test framework dependencies; or verifying those C# calls are already abstracted. DO NOT USE FOR: any target lacking the activation prerequisite; generating wrappers (use generate-testability-wrappers); migrating code (use migrate-static-to-wrapper); or general code review.
نصب و بهروزرسانی
این دستورها فقط برای کپی نمایش داده میشوند و روی سرور RefHub اجرا نمیشوند. پیش از اجرا، منبع بالادستی پیوندشده را بررسی کنید.
npx skills add dotnet/skills --skill detect-static-dependencies -y
سازگاری با ایجنتها
هنوز تست سازگاری ثبت نشده است
تا وقتی شواهد تست ثبت نشده، سازگاری این مهارت با ایجنتها را تأییدشده فرض نکنید.