跳到正文
cccskills

.NET Platform

@dotnet

组织

Home of the open source .NET platform

112 个技能1 个仓库 5695

技能(112)

在搜索中筛选

Scan C# code for dependencies on clocks, files, environment settings, and other resources that make tests difficult. Get source locations, consistent counts, and suggested abstractions, interfaces or providers that let tests control those dependencies.

中文简介正在准备中。当前显示英语简介。

  • Assessing testability before adding unit tests
  • Finding hidden dependencies in legacy C# code
  • Prioritizing dependencies to replace
dotnet/skills56952026年10月21日 更新

Find language-specific guidance files for a code-testing pipeline. This reference catalog points agents to build and test commands, mocking patterns, common errors, and selected workflow examples across languages including .NET, Python, TypeScript, Go, and Java.

中文简介正在准备中。当前显示英语简介。

  • Finding test guidance for a project's programming language
  • Locating build commands and test framework guidance
  • Finding mocking patterns and common error references
dotnet/skills56952026年10月21日 更新

Convert NUnit 3 or 4 tests to MSTest v4 while keeping the existing target framework and test runner. The workflow translates assertions, test data, setup, and concurrency settings, then compares test counts and results.

中文简介正在准备中。当前显示英语简介。

  • Migrating NUnit 3 or 4 tests to MSTest v4
  • Preserving parameterized tests and test data
  • Reviewing shared state and parallel execution during migration
dotnet/skills56952026年10月21日 更新

Apply the System.Text.Json APIs introduced in .NET 11 to produce PascalCase JSON names and retrieve typed serialization metadata, the information used to convert objects. Create runnable examples and check metadata availability without exception-based probing.

中文简介正在准备中。当前显示英语简介。

  • Produce PascalCase JSON property names
  • Convert dictionary keys to PascalCase
  • Retrieve typed serialization metadata without casts
dotnet/skills56952026年10月21日 更新

Identify a .NET project’s test framework, project format, and execution platform: VSTest or Microsoft.Testing.Platform. Trace configuration imports and overrides to explain the result, including conflicting settings or differences between target frameworks.

中文简介正在准备中。当前显示英语简介。

  • Determine whether tests execute on VSTest or MTP
  • Identify the test framework from project configuration
  • Investigate conflicting runner settings
dotnet/skills56952026年10月21日 更新

Prepare .NET projects for Native AOT, compilation before execution, and trimming, which removes unused code. Use build warnings to guide type annotations, reflection changes, and source-generated JSON serialization, then check all target frameworks.

中文简介正在准备中。当前显示英语简介。

  • Preparing a .NET project for Native AOT
  • Resolving IL warnings from trimming analysis
  • Adding annotations to reflection code
dotnet/skills56952026年10月21日 更新

run-tests

免费

Choose and optionally run .NET test commands that match the project's SDK, test platform, and framework. Target specific tests, collect reports or diagnostics, and report execution results using syntax appropriate to the repository.

中文简介正在准备中。当前显示英语简介。

  • Getting an exact test command for a repository
  • Running a specific class, category, or target framework
  • Collecting TRX reports, coverage, or diagnostic logs
dotnet/skills56952026年10月21日 更新

Classify existing tests with standard tags for success cases, errors, boundaries, and other behaviors. Get a per-test mapping and distribution summary, or apply tags using supported framework syntax and verify compilation and test discovery.

中文简介正在准备中。当前显示英语简介。

  • Comparing success-case and error-case test counts
  • Adding standard tags to existing tests
  • Reviewing the mix of boundary and integration tests
dotnet/skills56952026年10月21日 更新

Install a .NET SDK, the tools used to build .NET projects, inside a project folder. Configure version selection and shared setup scripts to test previews or reproduce team and CI environments without changing the system installation.

中文简介正在准备中。当前显示英语简介。

  • Trying a .NET preview without changing the system installation
  • Pinning a project to a specific SDK version
  • Creating repeatable setup scripts for teams and CI
dotnet/skills56952026年10月21日 更新

Review custom dotnet new templates before publishing. Check required fields, parameter types and defaults, command name conflicts, and constraints, then receive findings grouped by severity with concrete fixes for errors and warnings.

中文简介正在准备中。当前显示英语简介。

  • Checking template.json before publishing
  • Investigating templates missing after installation
  • Reviewing parameter types and default values
dotnet/skills56952026年10月21日 更新

Refactor C#/.NET code through renaming, extraction, consolidation, and other structural changes while preserving behavior. Check compatibility beyond code references, including public APIs and serialized names, then validate with builds and relevant tests.

中文简介正在准备中。当前显示英语简介。

  • Rename C# members and update their references
  • Extract shared logic from duplicate code
  • Reorganize code while preserving public API compatibility
dotnet/skills56952026年10月21日 更新

Interpret .NET coverage reports, which show code exercised by tests, to explain missing coverage and stalled progress. Calculate the gains needed to reach a target and, when requested, combine coverage with complexity to rank risk.

中文简介正在准备中。当前显示英语简介。

  • Explain Cobertura reports and partially covered conditions
  • Find the code keeping coverage from improving
  • Calculate line gains needed to reach a coverage target
dotnet/skills56952026年10月21日 更新

Introduce nullable reference types into an existing C# project, making explicit which references may be null. Plan a staged migration, resolve compiler warnings, and clarify public API annotations while preserving runtime behavior.

中文简介正在准备中。当前显示英语简介。

  • Adopting nullable reference types in an existing C# project
  • Migrating a large codebase file by file
  • Clarifying nullability in public APIs
dotnet/skills56952026年10月21日 更新

Upgrade an existing .NET 8 project to .NET 9 by addressing build errors and compatibility changes. Update related packages, containers, and build pipelines, then verify the migration with clean builds and tests.

中文简介正在准备中。当前显示英语简介。

  • Upgrading a project from net8.0 to net9.0
  • Resolving new build errors and warnings after upgrading
  • Reviewing ASP.NET Core and EF Core behavior changes
dotnet/skills56952026年10月21日 更新

Interpret MSBuild performance summaries when ResolveProjectReferences appears unusually expensive. Separate time spent waiting for dependent projects from actual task work, then use task self-time rankings to identify a concrete optimization target.

中文简介正在准备中。当前显示英语简介。

  • Investigating a high ResolveProjectReferences time
  • Separating dependency wait time from task work
  • Finding the actual bottleneck in a build log
dotnet/skills56952026年10月21日 更新

Review explicitly selected tests or bounded pull request changes without running or editing code. Receive a follow-up decision for each test, A–F quality bands where assessable, evidence-based notes, and concrete suggestions for improvement.

中文简介正在准备中。当前显示英语简介。

  • Reviewing a named test method
  • Assessing every test in explicitly selected files
  • Preparing per-test feedback for pull request changes
dotnet/skills56952026年10月21日 更新

Upgrade MSTest v3 test projects to v4 by updating packages, adapting code to changed APIs, and checking execution behavior. It also helps resolve build errors and problems finding tests in CI after an upgrade.

中文简介正在准备中。当前显示英语简介。

  • Upgrading an MSTest v3 project to v4
  • Fixing compilation errors after an upgrade
  • Updating custom TestMethodAttribute implementations
dotnet/skills56952026年10月21日 更新

Find source files with no matching test references by parsing code without building or running tests. Produces a source-to-test map and suggested test locations, helping plan test additions across supported programming languages.

中文简介正在准备中。当前显示英语简介。

  • List source files with no matching tests
  • Choose locations for new test files
  • Check source-to-test pairing after adding tests
dotnet/skills56952026年10月21日 更新

Write and repair custom MSBuild targets, the steps that organize build tasks. Preserve existing build sequences, choose appropriate insertion points, distinguish returned results from rebuild checks, and register generated files for cleanup.

中文简介正在准备中。当前显示英语简介。

  • Add custom steps to an existing build sequence
  • Repair dependency settings that replace SDK build steps
  • Correct stale results returned by query targets
dotnet/skills56952026年10月21日 更新

Create a missing .NET test project or repair references and solution registration in an existing one. Follow the repository’s framework and package conventions, then verify the build or test entry point used by CI, the automated integration process.

中文简介正在准备中。当前显示英语简介。

  • Set up a new .NET test project
  • Repair tests missing from CI discovery
  • Restore a reference to production code
dotnet/skills56952026年10月21日 更新

Provide language-specific reference files for test analysis skills. The catalog helps agents recognize test methods, assertions, skipped tests, waiting patterns, setup and cleanup hooks, external dependencies, and tagging capabilities across different frameworks.

中文简介正在准备中。当前显示英语简介。

  • Looking up assertion syntax for a test framework
  • Checking skip annotations and setup or cleanup hooks
  • Supporting test analysis across multiple languages
dotnet/skills56952026年10月21日 更新

Make C# code testable when it directly uses static services such as time, files, or processes. It introduces existing abstractions or minimal wrappers, supplies dependency registration, and demonstrates tests with controlled substitutes for real resources.

中文简介正在准备中。当前显示英语简介。

  • Introducing TimeProvider for time-dependent tests
  • Testing file operations with MockFileSystem
  • Wrapping Environment, Console, or Process calls
dotnet/skills56952026年10月21日 更新

Compare two or more dotnet new templates using their installed options, features, and supported frameworks. Get a focused comparison table and a recommendation that explains which template best fits the project you want to build.

中文简介正在准备中。当前显示英语简介。

  • Choosing between webapi and webapp
  • Comparing blazor and blazorwasm
  • Selecting console or worker for background processing
dotnet/skills56952026年10月21日 更新

Create .NET projects from templates and align them with neighboring projects and centralized package versions. Validate options, connect projects in a solution, and build the result to check that the generated structure works.

中文简介正在准备中。当前显示英语简介。

  • Creating a new .NET application from a template
  • Combining an API, tests, and a library in one solution
  • Adding a new project with centralized package versions
dotnet/skills56952026年10月21日 更新

这是你的账号吗?关联 GitHub 后可以汇总到你的创作者页面(日语)