[00:00:01] [music] [00:00:06] >> Hi everyone. My name is Mika Dumont, and [00:00:08] today I'm going to show you how GitHub [00:00:09] Copilot can help modernize existing .NET [00:00:11] applications and help reduce the manual [00:00:13] effort that goes into modernization. [00:00:16] So why modernize? Many companies still [00:00:19] rely on .NET framework applications, and [00:00:21] while these applications are critical to [00:00:23] the business, they're also holding you [00:00:25] back from taking advantage of what [00:00:26] modern .NET has to offer. [00:00:31] Moving to modern .NET can provide [00:00:32] benefits such as improved performance, [00:00:35] access to latest .NET capabilities and [00:00:37] libraries, and ongoing security fixes. [00:00:40] It also provides better support for [00:00:42] cloud-native architecture and containers [00:00:44] and can make maintenance and future [00:00:45] upgrades [00:00:46] easier. [00:00:49] The challenge is that modernization [00:00:51] isn't just a version bump. [00:00:53] It often involves project and build [00:00:55] system changes, dependency updates, and [00:00:57] replacing APIs that aren't supported in [00:01:00] the target environment. [00:01:02] For many teams, it's all of these [00:01:03] changes together that make modernization [00:01:05] feel pretty overwhelming. [00:01:09] That's where the GitHub Copilot upgrade [00:01:10] agent comes in. GitHub Copilot upgrade [00:01:13] is an agentic modernization experience [00:01:15] that helps teams upgrade existing [00:01:17] applications. [00:01:20] The agent can assess the application, [00:01:22] generate a plan, apply changes, and [00:01:25] validate the results. [00:01:26] It can also help diagnose and resolve [00:01:28] issues along the way. [00:01:30] So instead of working through every [00:01:31] migration step manually, you can have [00:01:33] the agent do more of that work with your [00:01:35] guidance. [00:01:39] So rather than walking through more [00:01:40] slides, let's go ahead and see what this [00:01:41] looks like on a real application. [00:01:45] Here I have our eShop Web website, and [00:01:48] so this is a WebForms application, and I [00:01:51] want to go ahead and upgrade this. [00:01:53] So the very first thing is you want to [00:01:54] make sure you have the GitHub Copilot [00:01:56] upgrade plugin installed. I already have [00:01:58] it installed, so I'm going to ahead and [00:02:00] select the upgrade agent from the agent [00:02:02] picker. [00:02:04] And then you just precisely tell it what [00:02:05] you want it to do. So I'm going to [00:02:07] upgrade [00:02:08] my project to .NET 11. [00:02:13] And then you just wait for things to [00:02:14] kick off. So right now the agent is [00:02:17] initializing. [00:02:23] Right now it's assessing the application [00:02:25] and it's seeing all the different [00:02:27] dependencies that it has. [00:02:29] And it's going to [00:02:32] ask me a few questions here. So the very [00:02:35] first question is the target framework. [00:02:37] So I'm going to keep it as .NET 11, but [00:02:40] I have all these other options as well. [00:02:42] I'm going to check it into a new branch, [00:02:44] so that looks good to me. [00:02:46] I'm going to run it end to end and pause [00:02:48] only one block, so that's automatic [00:02:49] mode, but I can also do guided where I [00:02:51] pause after each stage for review. [00:02:53] My commit strategy will be after each [00:02:55] task. [00:02:56] And all these settings look good to me, [00:02:59] so I'm going to accept them. [00:03:04] Right now it's checking out into the [00:03:05] branch. [00:03:08] Created the branch, now it's checking [00:03:09] out. [00:03:13] And now it opens our upgrade agent [00:03:15] dashboard. So we created this with [00:03:17] Canvas and the GitHub Copilot app. [00:03:20] And here you can see [00:03:22] the current task that is running. [00:03:25] Uh you can see the repository summary. [00:03:27] You can view things at a glance. [00:03:34] So right now it's setting up the [00:03:35] scenario and here you can see the [00:03:37] different preferences that I just [00:03:38] accepted earlier, so they're all over [00:03:41] here. [00:03:45] And right now it's assessing everything. [00:03:51] So far two files have already been [00:03:52] changed. There have been 20 insertions, [00:03:54] zero deletions, [00:03:56] zero commits. So after a task is run, [00:03:59] we're going to commit that. So that's [00:04:00] what the commit works that we selected [00:04:03] earlier. [00:04:08] All right, so now it generated an [00:04:10] assessment and here I could see [00:04:14] all the different findings that it has. [00:04:15] So there are 41 incidents. [00:04:20] You can group this by severity. So here [00:04:22] are the mandatory packages that need to [00:04:24] get upgraded that are incompatible. [00:04:28] So here are all the mandatory ones. [00:04:31] Here's my dependencies view. [00:04:34] It's the list of all the packages and I [00:04:36] can also [00:04:37] have the agent explain more about each [00:04:40] of these packages too. [00:04:44] So that's just a cool view there. [00:04:47] Let's go back to the overview and see [00:04:48] what's happening. So this assessment [00:04:50] that Adjust generated is something you [00:04:52] can share amongst your team. [00:04:54] It just gives you clearer guidance on [00:04:57] what the upgrade is going to entail and [00:04:59] then you can work with your team to [00:05:00] figure out what that work looks like for [00:05:02] each sprint. So hopefully it gives you a [00:05:04] better idea on the cost and how involved [00:05:06] the upgrade is. [00:05:08] Here are some other upgrade options. So [00:05:11] my strategy is going to be all at once. [00:05:15] I'm going to do a side-by-side upgrade [00:05:17] versus an in-place rewrite. [00:05:22] Another option we also have is test [00:05:24] coverage. So if you want to make it more [00:05:26] reliable, you can actually we now [00:05:28] integrate with the test agents and the [00:05:30] testing plugins. So if [00:05:32] if you want to add tests at the end, we [00:05:34] will call the agent and it'll generate [00:05:36] tests just to help with the validation [00:05:38] at the end. [00:05:39] I'm going to go ahead and just make an [00:05:40] edit here. I'm going to keep Entity [00:05:42] Framework 6 and make minimum changes to [00:05:45] the DB code. [00:05:47] And so this is me iterating with the [00:05:50] agent and making edits. So this is the [00:05:51] edit that I want to make to the actual [00:05:54] plan. So the plan is adjustable. It's [00:05:57] editable. You can do [00:05:59] whatever you want. If you have certain [00:06:01] tasks that you wanted to skip or run [00:06:03] anything, you can actually make edits to [00:06:05] that as well. [00:06:07] And here you can see my preference [00:06:10] over here. [00:06:17] I can even switch modes if I wanted to [00:06:19] midway through. So lots of ways to steer [00:06:22] the agent here. [00:06:28] So now it's generating the plan. So we [00:06:30] already generated the assessment and now [00:06:32] it's generating the plan based on [00:06:35] the confirmations before. [00:06:37] And here is the view of the plan. So [00:06:38] these are my upgrade options, [00:06:42] the strategy. [00:06:43] And then these are the different tasks [00:06:45] that it's going to run. So the plan [00:06:48] created tasks that the agent is going to [00:06:50] run when it actually does the upgrade. [00:06:58] So it looks like it already started that [00:06:59] very first task, which is pretty cool. [00:07:02] So right now it's verifying the .NET 11 [00:07:04] SDK. [00:07:11] And so here you can see at a glance we [00:07:13] have zero of four tasks that have [00:07:15] completed, [00:07:16] 15 files have changed, [00:07:19] found 29 mandatory issues and 13 [00:07:21] incompatible packages. [00:07:27] And that very first task just passed and [00:07:29] now it's going to the next task, [00:07:32] which is scaffolding the ASP.NET Core [00:07:33] host alongside the Web Forms app because [00:07:36] we're not doing an in-place rewrite, [00:07:37] we're doing a side-by-side upgrade. [00:07:46] Wow, and you can already see 449 files [00:07:48] have already changed. There's already [00:07:50] been hundreds of thousands of [00:07:51] insertions. [00:07:53] So that's a lot. [00:08:00] This is also a pretty involved upgrade. [00:08:02] I just want to point out because [00:08:05] it is Web Forms that we're taking to [00:08:07] um asp.net core, right? So [00:08:10] it's pretty hefty. [00:08:18] Here's our activity monitor, so I can go [00:08:20] ahead. I love this timeline view. I can [00:08:22] see all the different files that have [00:08:23] been changed. [00:08:24] Um I can see the commits. We already We [00:08:26] only have one commit so far. [00:08:29] Um and then you can see the changes by [00:08:31] file too and all the different [00:08:32] modifications per file. [00:08:40] And it's still scaffolding [00:08:43] the asp.net core host alongside the web [00:08:45] forms app. [00:08:52] All right, and that task has just [00:08:53] completed and now it's going to the next [00:08:55] task. And that next task is migrating [00:08:58] web form pages, services, and data [00:09:00] access [00:09:01] to the new host. [00:09:11] Here you can view the task that was just [00:09:13] run. [00:09:17] We have our builds view. [00:09:25] So we built this [00:09:27] view, this dashboard for [00:09:29] users that have came to us and said that [00:09:32] they love the agent, but the only thing [00:09:34] is that they don't know what's going on [00:09:36] and they need more visibility and [00:09:37] insights into the agent activity. [00:09:40] And so we definitely heard your feedback [00:09:42] and we created this dashboard to help [00:09:44] with that. So we really hope it does [00:09:46] help to give you that visibility. [00:09:50] Um so what it just did now, which is [00:09:52] interesting, is that it took that one [00:09:54] task and it broke it out into 10 [00:09:56] different tasks because it's just [00:09:59] learning and it's iterating, [00:10:01] right? And it's it's just adjusting [00:10:03] itself as it goes. And so it found that [00:10:07] breaking it out into these 10 tasks is [00:10:08] actually going to be more manageable. [00:10:11] And I've actually had this happened to [00:10:13] me before where I was in the middle of [00:10:14] an upgrade and [00:10:16] it only had four tasks similar and [00:10:19] I was thrilled and it was almost done [00:10:21] with the third task and then it decided [00:10:22] to break it out into like five separate [00:10:24] tasks. [00:10:25] So it does do this and I actually find [00:10:28] it to be helpful and it just makes it um [00:10:30] a bit faster too. [00:10:34] So it already finished that first task [00:10:35] and it's now running the second one. [00:10:45] And again, this agent is running a hands [00:10:48] off. You could really just do whatever [00:10:51] it is that you need to get done. This [00:10:53] agent is really here to just help you be [00:10:55] more productive so you can focus on [00:10:57] other important things and let it do a [00:10:59] lot of the heavy lifting. [00:11:03] And you can always guide it however you [00:11:05] please. [00:11:07] Um you can chat with it or a [00:11:10] you know give it specific instructions [00:11:12] too. [00:11:13] And one question that we actually get [00:11:15] asked is um if there is skills support. [00:11:19] So if you want if your team has custom [00:11:23] skills um certain coding conventions or [00:11:25] knowledge for your code base, you can [00:11:27] just create your own custom skill [00:11:30] or if you already have them you can just [00:11:31] also put them in at the root level of [00:11:33] the repo in the copilot folder and the [00:11:36] agent will [00:11:37] respect the skills that you add too. [00:11:40] So the agent does work alongside skills. [00:11:48] So now it's already at the [00:11:50] next task. [00:11:56] Looks like that one has passed. [00:12:07] And you can see here in the activity [00:12:08] monitor in the timeline you can just [00:12:10] view at a lot more things have happened. [00:12:13] There's a lot more commits that are [00:12:15] that um a lot more commits now. [00:12:18] Let's see. [00:12:21] Here are all the changes. [00:12:35] All right, I just finished running that [00:12:37] other task now. [00:12:40] And so the next task that's going to run [00:12:42] is migrating the about and contact [00:12:43] pages. So when I actually showed the [00:12:45] eShop website um I [00:12:48] forgot to show the about and contact [00:12:50] pages, but they are there as well. So [00:12:52] now it's might going to have to migrate [00:12:54] those over. [00:13:05] And so far seven of 14 tasks are [00:13:07] complete. [00:13:09] 681 files changed. [00:13:13] Seven commits created. [00:13:15] 29 mandatory issues and there's 13 [00:13:17] incompatible packages. And it's showing [00:13:19] you what's up next. [00:13:25] And we're at 50% completion. [00:13:28] [laughter and gasps] So we're almost [00:13:29] there. [00:13:32] All right. [00:13:35] Cool. So it migrated the about and [00:13:38] contact pages. [00:13:42] Now it's running that next task. [00:13:50] Let's look at the [00:13:52] activity monitor here. [00:13:56] Oh, another view that I love is this [00:13:59] changes view. So you can actually view [00:14:01] this [00:14:03] um in like a tree view, which I I love [00:14:06] this view just because it's easier to [00:14:08] understand the different changes and see [00:14:10] those diff views. [00:14:18] >> Okay. [00:14:20] So, we're up to the next task, which is [00:14:22] migrating the catalog details into the [00:14:24] lead pages. [00:14:27] So, in on the e-shop site, it also had [00:14:30] like a details link to [00:14:32] and all that. So, right now it's just [00:14:34] migrating that over. [00:14:39] This is [00:14:40] the details on that. [00:14:54] See what else is going on here. [00:15:01] My timeline view. [00:15:06] Many more commits and the time stamps of [00:15:08] the commits. [00:15:15] All right. So, we're now at that next [00:15:18] task, which is going to be the cleanup [00:15:21] and the final build. So, we're almost [00:15:22] there. We got this. [00:15:24] [gasps] [00:15:26] Or the agent has got this. [00:15:29] Okay. [00:15:34] And while that's running, we can also [00:15:35] just do a quick recap of what we just [00:15:37] saw. So, [00:15:39] we ran the agent. It started to assess [00:15:42] the application and it gave an [00:15:45] assessment of the work that's involved [00:15:47] or what it it found. Then it generated a [00:15:50] plan and so the plan [00:15:53] had all of the different tasks that it [00:15:55] was going to run and that planned out [00:15:57] how it was going to do the upgrade. [00:16:00] And then it started executing those [00:16:02] tasks. [00:16:05] So, this is the other view now. It's [00:16:07] going back to that initial view of the [00:16:10] final validation. [00:16:17] So, it's executing that last task. [00:16:24] We can see all the different commits. [00:16:45] Our goals for the build to to pass, of [00:16:47] course, it's been failing with all these [00:16:49] changes, but we just want to get that [00:16:52] build to pass at the end, and it does. [00:16:54] Yes, and there are zero errors. [00:16:57] The upgrade is complete, and the build [00:17:00] did pass. And so here are some next [00:17:03] steps [00:17:05] that you can do. Um we actually you can [00:17:07] add a spire at the end. You can also [00:17:10] migrate to ARM 64. We recently added [00:17:13] those capabilities. [00:17:19] And so let's go ahead and run this from [00:17:20] VS real quick, and yep, it looks to be [00:17:23] all the same. This web forms application [00:17:25] is now ASP.NET Core, and so the upgrade [00:17:28] is complete. [00:17:29] So we just saw this in the GitHub [00:17:31] Copilot app, but the GitHub Copilot [00:17:34] upgrade agent is also available in [00:17:36] Visual Studio, VS Code, the GitHub [00:17:38] Copilot CLI, [00:17:40] Copilot Cloud agent, um which is the [00:17:43] GitHub on github.com. Uh Modernize CLI [00:17:46] is another option for portfolio scale [00:17:49] modernization. [00:17:53] To get started, the first link takes you [00:17:54] to the upgrade agent documentation and [00:17:57] setup instructions, and the second link [00:17:59] takes you to the GitHub repo. So if you [00:18:01] have feedback or suggestions, please [00:18:03] open an issue or submit a feature [00:18:06] request. We would really love to hear [00:18:08] from you. [00:18:11] And yeah, thank you so much for joining [00:18:13] me. I hope this gives you a practical [00:18:16] look at how GitHub Copilot can help [00:18:18] modernize existing applications. [00:18:21] Bye.