[00:00:01] [music] [00:00:06] >> Hey everyone. My name is Wendy Briding, [00:00:07] and I'm a product manager on the .NET [00:00:10] team focusing on the co-pilot or all-up [00:00:14] agentic development experience for .NET [00:00:17] development. And [00:00:18] I have this one slide, and the rest of [00:00:21] it is going to be all demos all day [00:00:23] long. So [00:00:25] I have the big challenge today of trying [00:00:28] to go through an entire experience for [00:00:30] you using [00:00:32] co-pilot to work [00:00:35] an app from end to end. And so I'm going [00:00:36] to start out [00:00:38] to set the scene here. I have a [00:00:42] purchase order application. It has a [00:00:44] WinForms front end with an ASP.NET Core [00:00:47] API back end [00:00:49] running on a PostgreSQL database that [00:00:52] allows for users to submit purchase [00:00:54] order information [00:00:56] that then can be printed out and and [00:00:59] and and used for the purchase order [00:01:02] process. [snorts] [00:01:04] It has a bit of a bug. [00:01:06] If I go ahead and try to create this [00:01:08] draft PO, it is going to spin and spin [00:01:11] and spin, and then nothing happens. [00:01:14] The biggest problem is here is if I [00:01:18] refresh, [00:01:19] it submitted three [00:01:21] versions of that. And and some people, [00:01:24] since nothing happens, they would submit [00:01:26] and submit and submit. So we get like 12 [00:01:28] 15 copies of the same purchase order in [00:01:31] our database, which is [00:01:32] so bad. So we're going to try to fix [00:01:34] that problem, but we're going to at my [00:01:36] company, different people are [00:01:38] responsible for different things. And so [00:01:41] we're going to start out in [00:01:43] Visual Studio [snorts] [00:01:46] here [00:01:48] to do some updates to the front end. So [00:01:51] since [00:01:52] there's an error happening with the API, [00:01:54] I want the front end to recognize that [00:01:56] something went wrong and to inform the [00:01:58] user, make sure that all is fixed. Then [00:02:02] we're going to hand it over to [00:02:04] my it'll be me, but my API developer who [00:02:08] sits in VS Code and will be updating [00:02:11] the API to make sure that it doesn't [00:02:14] spin and spin and spin and that there's [00:02:16] some [00:02:17] some resilience there and that it [00:02:19] ultimately only submits one version of [00:02:23] the [00:02:25] of the purchase order. Then I'm going to [00:02:26] go over into the Copilot app [00:02:29] where we are going to print up a create [00:02:32] generate a report of all of those [00:02:34] duplicates. This bug has been in our [00:02:36] system for too long. We've had users [00:02:38] going in and manually creating these [00:02:40] reports and manually removing the [00:02:42] duplicates from the database and we need [00:02:44] to clean this all up. So we're going to [00:02:45] have the app generate a report [00:02:49] and then we're going to use the CLI to [00:02:51] then remove all of those duplicates for [00:02:53] us. So starting out in Visual Studio [00:02:56] here, [00:02:58] I [00:02:59] am using the new version with that the [00:03:02] just released today SDK harness. [00:03:05] I'm going to click here on the tools and [00:03:06] I can see that one of the cool things [00:03:09] that we have provided for .NET [00:03:10] developers, it's going to detect what I [00:03:13] have installed and what my app is using. [00:03:16] And so it is automatically provided this [00:03:19] Win Win Forms expert skill as well as [00:03:22] the .NET Web API skill since my solution [00:03:25] has both the Win Forms front end and an [00:03:26] API back end. And so those skills are [00:03:29] available to help make that experience a [00:03:31] lot better for me. [00:03:32] So I'm going to go ahead and [00:03:34] kick off this where I'm telling it to [00:03:36] just focus on making those front end [00:03:38] updates [00:03:40] and working on it. I am using auto here [00:03:43] in [00:03:44] it so that it will pick the right menu [00:03:47] the right model. [00:03:48] [snorts] It has picked up that Win Forms [00:03:50] expert skill identifying that this is a [00:03:52] front end change to the Win Forms. So it [00:03:54] needs to get some that information on [00:03:56] how it can be the most successful there [00:03:58] and is going to continue working on. [00:04:02] So while that's working, I am just going [00:04:05] to bring up [00:04:06] [snorts] our .NET skills. Um, you may [00:04:10] have heard in the keynote, we have been [00:04:12] curating a bunch of skills for .NET [00:04:15] developers that makes doing development [00:04:18] with .NET a whole lot easier and a whole [00:04:20] lot better. Makes that code quality a [00:04:22] lot better for you. [snorts] [00:04:24] Uh, if you miss the keynote, I'm going [00:04:25] to give you all that information now. [00:04:27] github.com/dotnet/skills [00:04:30] provides these and [00:04:32] here in the readme, it provides [00:04:34] installation instructions for how you [00:04:36] can get each of these plugins in [00:04:38] whichever [00:04:40] of the uh [00:04:42] agent agents that you prefer. [00:04:45] We also have [00:04:48] [snorts] up at the top here, we provide [00:04:50] a link to this skill value dashboard. We [00:04:53] don't want you to take our word for it [00:04:55] with regard to the quality of these [00:04:57] skills. We spend time and run through [00:05:01] the uh these skills against top [00:05:05] scenarios on a regular basis. And so [00:05:08] here you can see for the [00:05:11] C# expert skill, um [00:05:13] we ran it against Haiku 4.5, Sonnet 5, [00:05:17] GPT 53 Codex, 56 Luna. And then it [00:05:21] provides the details on how they did [00:05:24] compared to running the same scenarios [00:05:26] with and without the skill available. [00:05:29] How how much what how many times was it [00:05:31] activated? So did it actually use the [00:05:33] skill? [00:05:34] What was the token reduction or increase [00:05:38] based on uh the scenarios from without [00:05:41] the skill and with? Uh, [00:05:42] did it make it faster? [00:05:44] Did it make it more reliable? And so did [00:05:47] more instances of it pass with the skill [00:05:50] than without? [00:05:53] And then we're kind of using the [00:05:54] confidence interval [00:05:56] in AI to help create kind of a [00:05:59] suggestion for you. Is it worth [00:06:01] installing for this model? Is it not [00:06:04] and we're not sure. [00:06:10] So, [00:06:12] lots of good information you can um [00:06:15] filter by all of the skills. You can [00:06:17] pick a different each of the plugins [00:06:19] available to see the information on it. [00:06:21] [snorts] [00:06:22] So you can see which ones will work in [00:06:24] your environment with what you use um [00:06:28] there for you. [00:06:29] And so now [00:06:31] jumping back to our Visual Studio, [00:06:34] it's focused on that WinForms. [00:06:36] It isolated the UI change. It is doing [00:06:41] its validation now [00:06:44] and all finished. Fabulous. [00:06:48] [snorts] [00:06:49] So [00:06:52] and [clears throat] I [00:06:54] break out of here. [00:06:56] Let's uh restart this up, make sure that [00:06:59] we're everything's working. [snorts] [00:07:09] [snorts] [00:07:12] See I'm using Aspire to help manage the [00:07:15] entire environment. [00:07:16] [snorts] [00:07:18] Spins up that database and my API [00:07:22] and lastly the WinForms app. And so if I [00:07:25] just [00:07:27] enter in a quick one here [00:07:31] [snorts] [00:07:33] and create [00:07:36] we can still see that it's retrying a [00:07:38] few times, but at the end [00:07:41] it says it failed, [00:07:43] but you might want to confirm that it [00:07:45] didn't actually save and then it [00:07:48] automatically refreshes and we can see [00:07:50] those three duplicates in the system. So [00:07:54] [snorts] [00:07:55] part one done. The update there to stop [00:07:59] us from submitting more and more and [00:08:02] more versions of it all finished. [00:08:04] [snorts] [00:08:05] So I'm going to close out of my Visual [00:08:07] Studio and I'm going to jump over to my [00:08:10] VS Code uh where I'm going to do the [00:08:12] next part of this. [snorts] So in VS [00:08:15] Code I want to focus on the API [00:08:17] experience. Um just like we I showed you [00:08:20] with Visual Studio there were some [00:08:22] specific um skills that we shipped in [00:08:26] box for you. [00:08:28] [snorts] We also do the same thing with [00:08:30] C Sharp Dev Kit. So if you're a VS Code [00:08:33] user and you're using C Sharp Dev Kit, [00:08:35] you can see that there are some of these [00:08:37] great skills available here as well. [00:08:39] That Win Forms Expert is part of it. Run [00:08:42] tests to help it figure out the best way [00:08:45] to run your tests for you is here and [00:08:47] that .NET Web API skill is also right [00:08:50] there out of the box for you. [00:08:53] Um and there's a also a uh .NET [00:08:56] performance analyzer in there as well. [00:08:59] Um and so you can get all of the latest [00:09:01] and greatest information. If I just do [00:09:03] skills info and select that skill that I [00:09:06] want, it's going to provide [00:09:08] me with the information about what that [00:09:11] skill is for, what it's not for, um and [00:09:15] how to be most successful there. [00:09:17] So let's go ahead and [00:09:20] [snorts] give it this prompt to tell it [00:09:22] I want you know I just did this UI [00:09:24] change. Now we need to fix the API to [00:09:26] better handle and not submit multiples. [00:09:31] And we're going to go ahead and kick [00:09:32] that off. [snorts] [00:09:35] Um I'm using I'm going to go ahead and [00:09:38] um put on [00:09:40] [snorts] [00:09:41] allow all permissions here so I don't [00:09:42] have to keep uh telling it that it's [00:09:44] okay to do stuff. I'm using Copilot [00:09:46] Fusion here. [00:09:48] And so Copilot Fusion is great model [00:09:53] because it looks at the complexity of [00:09:54] the tasks that you've given it and it [00:09:56] picks a model that it thinks will handle [00:09:58] that best. [00:09:59] In this case it's chosen six GPT 6.1 [00:10:03] Soul [00:10:04] um because this is a little bit harder [00:10:05] of a of a task for it to accomplish. [00:10:09] [cough] [00:10:11] [snorts] [00:10:12] And now we can go through and see some [00:10:13] of the things that I'm going to expand [00:10:15] this a little bit more so we can see [00:10:17] some of the things that it's doing as [00:10:18] it's getting started. First thing it did [00:10:21] was read that .NET web API skill. So [00:10:23] great. It's getting a better [00:10:24] understanding of how it can best work [00:10:27] with uh web APIs with .NET. [00:10:30] [snorts] And once it has that knowledge, [00:10:31] it can [00:10:33] get right to working and finding where [00:10:35] it needs to. It's reading the handoff [00:10:37] doc that the last agent made for it to [00:10:40] understand what it did and where it [00:10:42] needs to continue. [00:10:44] It sees that this is an Aspire um Aspire [00:10:47] fied application, so it's understanding [00:10:50] Aspire orchestration. [00:10:52] [snorts] And just kind of getting itself [00:10:54] ready, reading all of the different [00:10:56] stuff, and then getting to work on [00:10:58] figuring out what it needs to do. [00:11:01] Which is awesome. [00:11:02] So I'm going to [snorts] let that keep [00:11:03] going and I'm going to talk to you a [00:11:04] little bit about what we do within the [00:11:07] .NET team to make sure that these [00:11:09] experiences are great for you um and [00:11:12] that they continue to stay great. [00:11:14] Over the last year, we have been [00:11:17] compiling a set of uh a benchmark. [00:11:20] You may [clears throat] have noticed um [00:11:22] when you talk about agentic development [00:11:24] out in the wild, you see uh Swe bench [00:11:27] and Deep Swe and all of these different [00:11:29] benchmarks that the model providers and [00:11:32] the agent harness teams are running on a [00:11:34] regular basis just make sure that and to [00:11:38] understand where their models and their [00:11:40] harnesses are with regard to doing [00:11:42] agentic development. [00:11:43] But if you [snorts] look deep into those [00:11:45] open source and all of those different [00:11:48] benchmarks that they're running, [00:11:50] there's not a lick of .NET code, C sharp [00:11:52] code in any of that. So we've spent a [00:11:54] lot of time on the .NET team creating a [00:11:57] benchmark that is specific to the type [00:11:59] of work that you all do. We listen to [00:12:02] feedback, um look at the different [00:12:05] scenarios that you all are sending us to [00:12:06] say this doesn't work when I'm trying to [00:12:08] use Copilot and all of that and we've [00:12:10] compiled a [00:12:12] of [00:12:13] uh 170 some scenarios that we run on a [00:12:16] regular basis to ensure and understand [00:12:19] where we're at with regard to each of [00:12:22] these experiences. And so the .NET team [00:12:25] runs these against the top models that [00:12:27] are being used as well as the frontier [00:12:29] models to identify where we have gaps in [00:12:32] our products or where the experience is [00:12:35] not uh as optimal as we'd like it to be [00:12:39] when being used with agents. [00:12:42] All of the harness teams um at Microsoft [00:12:45] are also using this benchmark to [00:12:47] understand how they're doing with regard [00:12:50] to C Sharp development as well. So the [00:12:52] um Visual Studio team and the VS Code [00:12:55] team um and the uh [00:12:57] the Copilot SDK team are all also [00:13:00] utilizing this benchmark um to make sure [00:13:03] and catch any regressions that that may [00:13:05] happen. And so over the last year with [00:13:07] the runs of these, there have been some [00:13:08] in some really it uh great instances [00:13:11] where this has paid off. In one [snorts] [00:13:13] case [00:13:15] a tool was being developed um that was a [00:13:18] great idea. It it speeding up code [00:13:20] searching, providing a lot of great [00:13:23] useful things to make the agentic [00:13:26] experience better overall. [00:13:28] [snorts] But when it ran against the C [00:13:29] Sharp benchmark, it found that it really [00:13:32] increased token usage by way too much [00:13:34] out past the threshold that we thought [00:13:37] was um appropriate [00:13:39] for development. And the engineers were [00:13:42] able to catch this in the benchmark [00:13:43] before it released to users, make some [00:13:46] fixes to bring that down [00:13:48] and get out a version that still had [00:13:50] those great benefits but all did not [00:13:52] have that token hit that that you would [00:13:55] get. [00:13:58] Another instance of us using this these [00:14:01] benchmarks as [00:14:03] um we run them on a regular basis and we [00:14:05] see which scenarios are struggling the [00:14:07] most. [00:14:09] And one of our reports showed that [00:14:11] refactoring scenarios were struggling [00:14:13] especially with really large codebases. [00:14:16] [snorts] And that led to the creation of [00:14:17] the C# refactoring skill, which now [00:14:20] makes those scenarios that were were not [00:14:22] passing before with the um models [00:14:26] are now doing much better and most of [00:14:27] the time are passing [snorts] without [00:14:29] too much of an increase in token usage. [00:14:33] There's some variation with benchmarks [00:14:35] and it's hard to um to get it exactly, [00:14:38] but those are all [00:14:39] showing some really great improvements [00:14:41] and making those scenarios much better [00:14:43] for you. So highly recommend uh checking [00:14:45] out .NET skills [00:14:47] and all the other tools that we have. [00:14:52] [cough] [00:14:53] [snorts] [00:14:54] Now this is now at the point of [00:14:57] validation. You can see it just called [00:14:58] that run test skill so that it figures [00:15:01] out how what is the best way for it to [00:15:03] run the tests that it needs to do to [00:15:05] validate the change that it's made. [00:15:07] [snorts] [00:15:07] And it's doing really really great in [00:15:09] getting things going. [00:15:15] [snorts] [00:15:15] Since it's in the validation spot, I'm [00:15:17] going to go ahead and kind of run it in [00:15:19] the background so that we can keep [00:15:22] moving on. [00:15:23] So let me jump over to [00:15:27] [snorts] this one and I'm going to [00:15:32] aspire run [00:15:35] so we can see how it how it's doing [00:15:37] [snorts] [00:15:38] and where we're at um whether we still [00:15:41] have the bug and kind of introduce the [00:15:42] next piece of things. [00:15:45] [snorts] [00:15:49] [sighs and gasps] [00:15:50] So here I'm using that Aspire CLI, which [00:15:53] is great to just run. [00:15:56] [snorts] [00:16:00] Waiting for the [00:16:02] WinForms app to spin up after the API is [00:16:05] spun up. [00:16:08] [snorts] [00:16:11] There we go. [00:16:14] Do a quick [00:16:19] >> [snorts] [00:16:20] >> And we [00:16:22] create. [00:16:26] And woohoo, only one. So that bug is [00:16:29] fixed. [00:16:31] And now we have this generate duplicate [00:16:33] reports button. [00:16:35] So this was being used by our users to [00:16:38] manually go in and fix things. This is [00:16:41] currently generating a text file. [00:16:45] Not very helpful for when we want it to [00:16:47] be able to use be used to [00:16:50] programmatically remove all of those [00:16:52] duplicates. So our next [00:16:54] step is we are going to use that [00:16:58] that file we want to change that file [00:17:00] into a JSON format so that it can be [00:17:03] easily used programmatically to remove [00:17:06] the duplicates. So for this one, I'm [00:17:08] going to jump over to the Copilot app. [00:17:10] I don't [snorts] know if you're using [00:17:11] the Copilot app, but if you're not, you [00:17:13] should go definitely check it out. It's [00:17:14] got a lot of really great features. [00:17:16] [snorts] [00:17:17] Here I'm able to identify which project [00:17:19] I want. [00:17:22] I [clears throat] have it creating a new [00:17:23] work tree against a specific branch [00:17:27] that I have. So you can you can update [00:17:29] to specify which branch you wanted to [00:17:30] start working off of. You can have it [00:17:32] work in your current checkout. Lots of [00:17:34] great options here. [00:17:36] Going to continue using Copilot Fusion [00:17:39] here as well. [00:17:48] [snorts] [00:17:51] Now we've seen skills built into Visual [00:17:55] Studio. We've seen skills shipped with C [00:17:59] Sharp Dev Kit. We've seen that you can [00:18:02] bring in skills for you [00:18:06] using the plugin method. [00:18:09] This is going to show [00:18:11] an even a different method. [00:18:14] [snorts] [00:18:15] So these skills, mark out and mark out [00:18:17] build and shapes [00:18:18] were shipped with the mark out NuGet [00:18:21] package. This is new very recently [00:18:24] [snorts] that allows for package [00:18:27] maintainers to put their expertise right [00:18:30] in the package. [00:18:31] They can create a set of skills that [00:18:34] work best with their NuGet package, [00:18:37] [snorts] [00:18:38] ship that all as part of the package so [00:18:40] that the user gets that package, does a [00:18:42] .NET restore, those skills get [00:18:44] downloaded to their machine [00:18:46] automatically. And in this case, I have [00:18:48] the Markout package. [00:18:51] It came with these set of skills. [00:18:53] We [snorts] [00:18:54] had to run one command. I'm going to [00:18:57] jump over to [00:19:00] [snorts] [00:19:01] this blog post by Rich Lander um that [00:19:04] came out last week announcing this [00:19:07] feature. [00:19:08] In here gives you all the information [00:19:10] about how you can package your skills as [00:19:13] a package owner, but also how you can [00:19:16] utilize skills that are packaged in [00:19:18] packages as a as a developer using the [00:19:21] package. [00:19:22] [snorts] And so here there's um [00:19:25] down at the bottom, there is this .NET [00:19:28] package skills command that you can run [00:19:31] that will take those skills [00:19:34] and copy them [00:19:36] folders so that the agents can recognize [00:19:39] that they're there and utilize them in [00:19:42] the experience. [00:19:43] [snorts] And so this opens it up so many [00:19:46] different ways that you can get the [00:19:48] expertise of the developers that are [00:19:50] providing the information from [00:19:52] [snorts] [00:19:53] .NET skills to those that are included [00:19:56] in box as well as now in your NuGet [00:19:59] packages. [00:20:00] So lots of really amazing stuff there [00:20:03] [snorts] um that it's able to provide [00:20:05] us. This change [00:20:07] is changing that text file into a JSON [00:20:10] file. All [snorts] the logic is already [00:20:12] there. This [00:20:14] should be a pretty quick fix for it to [00:20:16] do and it looks like it's making those [00:20:18] changes [00:20:19] [snorts] [00:20:20] and moving forward. [00:20:23] Um one other thing I wanted to mention, [00:20:26] LSP. Um, the .NET plugin that we provide [00:20:29] in .NET skills comes with the [00:20:31] configuration for the agents to use LSP [00:20:36] as a tool in its in its tool house. Just [00:20:39] like you have MCP servers and all of [00:20:41] those different kinds of tools, LSP can [00:20:42] be a tool to use as well. [00:20:46] In [00:20:47] uh the [00:20:50] .NET plugin [00:20:52] [snorts] that [00:20:54] is right there available for you to use [00:20:56] install that plugin and that [00:20:58] configuration is set up for you for it [00:21:00] to use Roslyn and to use Roslyn in [00:21:02] daemon mode, which is incredible new [00:21:05] feature that we have added that makes [00:21:08] working with multi-agents at once [00:21:11] um so much better. How many times have [00:21:14] you had a couple of different agents [00:21:16] working at the same time and you felt [00:21:19] your system start to slow down and all [00:21:22] of your memory gets used? [00:21:23] That is no longer a problem with the new [00:21:27] updated Roslyn with daemon mode and that [00:21:29] it [00:21:30] is now sharing some of those resources [00:21:33] and so we're seeing about a 50% [00:21:35] reduction in memory usage when you're [00:21:37] using it in that multi-agent scenario. [00:21:40] So now [00:21:41] when I normally have three or four [00:21:43] agents going at one time, [00:21:45] my system can handle it now. Um, so I [00:21:47] highly recommend getting that plugin and [00:21:50] utilizing LSP for code search in the app [00:21:53] and in the CLI [00:21:55] um to do those for you. [00:21:59] And so let's see. We'll check on where [00:22:00] we're at. [00:22:02] All right. So [snorts] we're in the [00:22:03] verification stage, which is great. So [00:22:06] now I'm going to go ahead [00:22:08] and jump [snorts] over and run that one. [00:22:12] [snorts] [00:22:15] Um, so we'll do a spider run. [00:22:21] There we go. [00:22:22] And now I can generate the report and [00:22:24] you can see saving it in JSON format, [00:22:27] which is fabulous. All right. [00:22:31] [snorts] [00:22:32] So now that we have the report of all of [00:22:35] the duplicate entries that were created [00:22:38] when we had the bug, the last thing I [00:22:40] want to do is to jump over into the [00:22:42] Copilot CLI. [00:22:44] Again, I have it set to Copilot Fusion [00:22:47] to uh [00:22:48] pick the right model. This one I want it [00:22:50] to go through and identify the ways to [00:22:54] uh [00:22:55] safest way to remove those duplicate [00:22:57] entries that have been identified in [00:22:59] that JSON file. [00:23:01] And so here going to kick this off. This [00:23:03] one was a uh [00:23:06] medium complexity, so it's picked GPT-4 [00:23:08] Luna to take on this task. And again, [00:23:12] using that LSP to do its code search to [00:23:15] understand and find where to make those [00:23:17] changes and and to be as fast as we can. [00:23:20] Now I'm going to let that run and [00:23:22] probably not going to see that finished [00:23:23] in the less than a minute that I have [00:23:25] left. So I just wanted to kind of wrap [00:23:27] up. We were able to go from end to end [00:23:30] through four different Copilot products [00:23:32] all doing some fabulous .NET development [00:23:35] to fix a problem that we had in our [00:23:38] system. No matter which tool is your [00:23:40] favorite, no matter where you feel most [00:23:43] comfortable, we have [00:23:45] available for you to be successful with [00:23:49] agentic development with .NET. [00:23:53] Thank you.