View a markdown version of this page

How to work with the .NET agent - AWS Transform

How to work with the .NET agent

Experiences

AWS Transform .NET modernization is available in several experiences:

  • Web console: For large-scale transformation of repositories.

  • Visual Studio IDE: Developer-led transformation of a solution or project working alongside agent interactively and iteratively. Requires a Windows development machine.

  • Command line: Transform .NET solutions with the ATX CLI using an AWS-managed transformation.

You can also invoke AWS Transform from AI code companions:

A common pattern is to first modernize with AWS Transform for .NET, then hand off to an AI code companion for last mile work.

Area Web application Visual Studio IDE ATX CLI
Target roleIT professionalDeveloperDeveloper
Operating systemAnyWindowsLinux, macOS, Windows
Source control access
  • Repository (AWS CodeConnections)

  • Repository (Personal Access Token)

  • Code zip file (Amazon S3)

  • Code zip file (Direct Upload)

Local file system Local Git repository
Job scopeUp to 5,000 repositories per jobOne solution at a timeOne solution at a time
Transformed code locationWritten to a new writeable repository branchReplaces original code on your file systemReplaces original code on your file system
Unit of workRepositoryProjectProject
Assessment
  • Analyze repositories

  • Assessment reports (multiple formats)

  • Global modernization plan

  • Analyze projects

  • Assessment report

  • Modernization plan

  • Analyze projects

  • Assessment report

  • Modernization plan

Customize modernization plan
  • Customize global plan

  • Upload steering docs

  • Customize plan

  • Upload steering docs

  • Customize plan

  • Provide steering doc

Transformation modesAutonomous or InteractiveAutonomous or InteractiveAutonomous or Interactive
Checkpoint reviewsReview each repository after transformationReview each project after transformationReview each project after transformation
Iterative modernization
  • Ask for changes at checkpoint

  • Ask for changes after transformation

  • Retry repo with revised instructions

  • Assess additional repos in same job

  • Ask for changes at checkpoint

  • Ask for changes after transformation

  • Retry project with revised instructions

  • Review code diffs

  • Edit code at checkpoint

  • Ask for changes at checkpoint

  • Ask for changes after transformation

  • Retry project with revised instructions

  • Review code diffs

Downloadable artifacts
  • Transformed code

  • Assessment report

  • Modernization plan

  • Transformation report

  • Next Steps markdown

  • Transformed code

  • Assessment report

  • Modernization plan

  • Transformation report

  • Next Steps markdown

  • Assessment report

  • Modernization plan

  • Transformation report

  • Next Steps markdown

Unit test validationPorts and runs existing unit tests
  • Ports and runs existing unit tests

  • Generates missing unit tests for modernized code

Ports and runs existing unit tests

Use the experience that best fits your scenario.

Scenario Recommended experience
Work at repository level when transforming Web application
Perform large-scale transformations Web application
Transform from a Mac Web application
Transform unattended Web or IDE, autonomous mode
Work at project level when transforming Visual Studio IDE
Local build to confirm transformed code builds on local environment Visual Studio IDE
Agent leads the modernization, I review Web or IDE, autonomous mode
I lead the modernization, agent assists Web or IDE, interactive mode, customize plan
Complex modernization IDE, interactive mode
Portfolio owner starts transformation, hands off to developers for review Web application; use beaming to hand off repositories to developers, who review in the IDE
Script modernization in an existing pipeline or workflow ATX CLI

Transform .NET solutions with the ATX CLI

You can modernize a .NET solution from the command line using the ATX CLI (AWS Transform custom) and the AWS-managed transformation AWS/dotnet-modernization.

Use the following command form:

atx custom def exec -n AWS/dotnet-modernization -p <path-to-solution> [-q] [-x] [-t]

The following command-line options are available:

  • -q (quiet): show agent conversation only, hide tool execution details

  • -x (autonomous): run in autonomous mode without user interaction

  • -t (trust): trust all tools without prompts

The following table shows example commands.

Command line example Description
atx custom def exec -n AWS/dotnet-modernization -p C:\dev\InventoryService -t -q Transform the solution in interactive mode, showing agent conversation only, and trust tool updates.
atx custom def exec -n AWS/dotnet-modernization -p C:\dev\InventoryService -t Transform the solution in interactive mode, showing all tool activity, and trust tool updates.
atx custom def exec -n AWS/dotnet-modernization -p C:\dev\InventoryService -t -x Transform the solution in autonomous mode and trust tool updates.