|
| 1 | +# Assessing your application |
| 2 | + |
| 3 | +The first step in using the AWS Toolkit for .NET Refactoring to refactor your application from .NET Framework 4.8 to .NET 6 is to perform an assessment of the current application. This assessment will scan through your application code, dependencies, and NuGet packages to help determine the level of complexity with converting your application. |
| 4 | + |
| 5 | +The assessment is nondestructive, the results of the assessment is a report. |
| 6 | + |
| 7 | +From Visual Studio, open the solution file |
| 8 | + |
| 9 | +``` |
| 10 | +C:\source\MediaLibrary4.8\MediaLibrary\MediaLibrary.sln |
| 11 | +``` |
| 12 | + |
| 13 | +If the toolkit does not automatically open the Getting Started page below, you can manually launch the Getting Started page by clicking on the extensions menu, select the AWS Toolkit for .NET Refactoring, and then clicking on Getting Started. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Configuring the Toolkit |
| 18 | + |
| 19 | +The AWS Toolkit will need to be configured on the first execution. The configuration page is seen here: |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +In order to progress beyond the first page, you must click on the link under the End User License Agreement (EULA.) Click on this link and read the agreement on the linked page. |
| 24 | + |
| 25 | +The first configuration option is to select how the toolkit will connect to AWS. You have two options for these details. First, you can specify a named profile that has been configured by the AWS Command Line. In this case you have an access key and a secret key configured on your machine. Typically, these credentials are stored by using the command: |
| 26 | +``` |
| 27 | +aws configure |
| 28 | +``` |
| 29 | +And then providing credentials. |
| 30 | + |
| 31 | +The second option is to allow the tool to locate credentials automatically. This option will allow the tool to use credentials that were obtained via IAM Identity Center (Formerly SSO) or inherit credentials from an IAM Role attached to an EC2 Instance. |
| 32 | + |
| 33 | +Functionality for the application will be identical with either method, as long as the selected method has valid credentials for your AWS account. If you are unsure of which option to use, consult with your AWS Account Administrator as they may have policies that determine which method is to be used for obtaining AWS Credentials. |
| 34 | + |
| 35 | +The second configuration option that needs to be set is the region for test deployments. Currently, you can select either "US-EAST-2" or "EU-WEST-2." Note that this selection applies **only** to the test deployments conducted by the toolkit. You have the option to deploy your applications to any AWS region once you are happy with the refactoring. |
| 36 | + |
| 37 | +Once these options have been completed, click Next. |
| 38 | + |
| 39 | +## Starting the Assessment |
| 40 | + |
| 41 | +After configuring the toolkit, you are presented with the Refactoring Dashboard. |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +At this point, the Assessment is listed as "Not Started." As a result other toolkit functionality may not be available. In order to perform an assessment, you first need to open one of the code files in the solution. Double click on the "HomeController.cs" file to open it, then click back on the Dashboard Window. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +From this window select the option to "Start Assessment" and the toolkit will begin inspecting your application. |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +The status on the dashboard will change to "In Progress" while the scanning takes place. |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +Once your assessment is complete, you will receive an assessment report below. |
| 58 | + |
| 59 | +### Incompatible NuGet packages |
| 60 | + |
| 61 | +This lists the number of packages that are included in the solution that are not compatible with the target version of .NET in this case .NET 6. Note that for these packages, you will need to find alternatives for the required functionality. |
| 62 | + |
| 63 | +### Incompatible APIs |
| 64 | + |
| 65 | +This lists the number of API calls that are not portable to the new version of .NET. This may be cases where functionality has been deprecated or the API calls have breaking changes. Manual coding effort will be required, after porting, to make the code compatible with the new target version of .NET. |
| 66 | + |
| 67 | +These results provide details to the amount of manual work, that the toolkit was able to identify, that will be required after the porting. It is important to understand that these are the incompatibilities that the tool was able to identify, it is not necessarily all of the changes that will be required. You may find code that needs to be reworked when you test your application after porting. |
| 68 | + |
| 69 | +Further details of the incomparable code can be found by looking at the error list, and selecting to view Warnings. Each item in the list shows some manual effort that you will have to complete. |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +[Next](../03-porting-application/01-porting-application.md) <br/> |
| 75 | +[Back to Start](../README.md) |
| 76 | + |
| 77 | + |
0 commit comments