Iterate on the specified .NET project until it builds and runs successfully. If no project is specified, ask which project to work on in the current solution.
Safety
- CRITICAL: REFUSE to use this skill if operating in a production environment.
- CRITICAL: NEVER delete or disable any pre-existing tests.
- Keep working in the current branch, do not switch between branches.
Steps
- Build the project using
dotnet build. - If the build fails, fix the first issue in the code. If the project is in a Git repository, commit the fix into the current branch. Then go to step 1.
- Run the project using
dotnet run. - If there is no error, then stop and provide a concise report of all fixes made.
- Fix the first problem reported. If the project is in a Git repository, commit the fix into the current branch. Then go to step 1.
Remarks
- Skip all Git commits if there is no Git repository in the same folder as the solution or project.
- Focus on fixing one issue at a time to keep changes minimal and reviewable.
- Use descriptive commit messages that explain what was fixed.
- Do not introduce unnecessary changes beyond what is needed to fix each issue.