[00:00:01] [music] [00:00:06] >> Hey friends. I'm Scott Hanselman, and [00:00:08] it's .NET Conf. You know, today we're [00:00:10] going to launch .NET [00:00:12] 11. [00:00:13] And I have to say it got me a little [00:00:16] emotional. [00:00:17] Um, you know, today you're going to see [00:00:19] a parade of amazing demos from some of [00:00:22] the smartest men and women that I have [00:00:23] ever worked with in my entire life. [00:00:25] We have been working tirelessly to make [00:00:27] this entire day, uh, series of days a [00:00:30] delight for you. [00:00:32] But I want to take a moment and just [00:00:33] reflect on what it means to me [00:00:36] because this has been [00:00:37] 25 years of my life. I've been coding [00:00:40] since I got my first computer in 1984. [00:00:43] And, uh, [00:00:45] 24 25 years ago I was on the other side [00:00:47] of the camera [00:00:49] like you [00:00:50] using code coming from Microsoft. I I [00:00:52] remember those moments that we just saw, [00:00:55] uh, [00:00:56] you know, Bill Gates saying that .NET [00:00:58] was being announced. I'd already been [00:00:59] using it in beta, uh, for a while. So I [00:01:02] went back over 20 plus years of my blog [00:01:05] and looked at some of the moments that [00:01:06] really defined my career in .NET and [00:01:10] maybe your career as well. [00:01:11] Bring up my screen real quick. I found a [00:01:13] blog post from October of 2002, [00:01:17] uh, which still has a non-breaking space [00:01:20] bug that I'm going to need to, uh, fix [00:01:21] at some point. And the thing that stuck [00:01:24] out about this particular blog post was [00:01:26] that I was writing [00:01:28] unsafe code to convert a uint to bytes. [00:01:31] And I was so excited that I discovered [00:01:34] that we already had this built into [00:01:36] .NET, and I wrote a post about how I was [00:01:39] teaching my students at the Oregon [00:01:41] Institute of Technology and how there [00:01:44] are just utility classes galore in .NET. [00:01:48] I started going through finding the [00:01:50] release of DOS Blog, which my blog still [00:01:52] runs. My blog has been updated from .NET [00:01:55] 1 to ASP.NET 1.1 and now, [00:01:58] uh, on a .NET Core [00:02:00] And I found a a sassy tone here from [00:02:04] Jeff Atwood who wanted to know more [00:02:05] about open source. So in 2006 [00:02:08] over 20 years ago, [00:02:11] can see [00:02:12] how to do open source with [00:02:15] SVN and I put in a patch. [00:02:19] Look at that. [00:02:20] Here's us running [00:02:22] Firefox 20 plus years ago. [00:02:25] And then the explosion of open source, [00:02:28] I encourage you to find out what your [00:02:30] GitHub user ID is. Mine is under 3,000 [00:02:33] which I think is kind of a cool a cool [00:02:36] flex. And standing on stage and open [00:02:39] sourcing [00:02:40] so many parts of .NET with so many [00:02:42] people. [00:02:43] And then comparing our green [00:02:46] GitHub timelines. If you go back to [00:02:49] 1978 my Git repository is [00:02:53] just [00:02:54] one five contributions because I [00:02:56] backdated my my Git to make it look [00:02:58] awesome. [00:02:59] And then [00:03:01] I went back to school. It took me 11 [00:03:02] years to get my four-year degree and [00:03:04] .NET was even a part of that. As one of [00:03:06] my senior assignments, I wrote a tiny [00:03:09] operating system in .NET. It was a [00:03:11] virtual operating system. I went and I [00:03:14] found the slides. Shout out to these [00:03:16] slides from TechEd Malaysia 2002. [00:03:20] I think these slides are a vibe. [00:03:22] And this tiny operating system is an [00:03:24] abstract kind of a pretend virtual [00:03:26] machine all written in .NET 1. So I [00:03:28] spent a couple of minutes [00:03:31] updating this, you know, with some of [00:03:33] the new tools that we have and getting [00:03:34] it up to date entirely on .NET 11. [00:03:38] And in doing that, I came up with the [00:03:40] tiny OS time machine having been updated [00:03:43] entirely to .NET 11 but still running my [00:03:46] original homework from my my [00:03:49] undergraduate degree. When I hit power, [00:03:51] I can fire that up [00:03:53] and run it. I've got tiny floppy disks. [00:03:55] You can see memory as it's running [00:03:59] including the original source of my tiny [00:04:02] operating machine just made that much [00:04:04] more awesome, including the CRT glass [00:04:08] feature. [00:04:09] All of this running in .NET and live on [00:04:12] .NET 11 today. [00:04:14] In going through this experience and [00:04:17] kind of feeling [00:04:18] what .NET has meant to me over the last [00:04:20] 25 years, it made me realize what a [00:04:22] comfort it is. [00:04:23] It's there, it's reliable, it's fast as [00:04:26] heck, [00:04:27] and it's going to continue to be there. [00:04:30] I hope that today you [00:04:32] get to revel not just in the things that [00:04:34] are coming, but the things that have [00:04:35] happened, [00:04:37] the hard work that literally hundreds of [00:04:39] thousands of people, both inside of [00:04:41] Microsoft and outside of Microsoft, have [00:04:43] done to make .NET just a fantastic place [00:04:46] to create software, whether it be [00:04:48] headless or serverless or in the cloud [00:04:50] or on your machine, whether it runs [00:04:53] on your phone or it runs a Windows app. [00:04:57] .NET 11 is a fantastic release, and [00:04:59] we're going to spend the next couple of [00:05:01] days sharing it with you. [00:05:03] And I know my buddy Damian is here who's [00:05:05] going to talk about some of the eras [00:05:06] that we've gone through, but yeah, it's [00:05:09] it's been a it's been a journey. [00:05:10] >> Yeah, I'm I'm Damian Edwards, and when I [00:05:13] think about the last 25 years, I think [00:05:15] of the industry eras that have really [00:05:17] shaped software development, so like my [00:05:19] career and your career, and how .NET has [00:05:22] evolved in turn. Now, it all started [00:05:24] with Windows right back in the beginning [00:05:25] in 2002 as Scott said. It was all about [00:05:28] Windows on the server and the client, [00:05:30] and we introduced interoperability along [00:05:32] with other partners using SOAP for [00:05:34] server-to-server communication, and then [00:05:36] obviously we got the CLR, we got the [00:05:38] BCL, and we got those languages that we [00:05:40] still love today, C#, VB.NET at that [00:05:42] time. [00:05:43] Fast forward a bit to the web era, and [00:05:46] this was all about apps for the browser. [00:05:47] We had massive browser divergence. If [00:05:50] you were like me, you spent a lot of [00:05:51] time trying to make the same site and [00:05:53] the same app work in different browsers. [00:05:55] We got the birth of rich internet [00:05:57] applications, and with that frameworks [00:05:59] and solutions for building those types [00:06:01] of apps, but it was also our journey [00:06:03] into open source just starting there. [00:06:05] So, we had ASP.NET MVC, which was a [00:06:07] response to open source frameworks. And [00:06:10] then, of course, we had our own uh first [00:06:12] milestone when we shipped open source [00:06:13] JavaScript uh inside of our own project [00:06:16] templates. Around the same time, we also [00:06:18] had the birth of the mobile era where we [00:06:20] you know we moved to trying to do one [00:06:22] code base to run on every device thanks [00:06:24] to the birth of smart devices. With [00:06:26] Xamarin, we brought C Sharp uh to iOS, [00:06:29] Android, and more types of devices. And [00:06:31] that evolved into .NET Maui which we [00:06:33] have today. We also again personally as [00:06:35] a web developer, I remember doing [00:06:36] adapted web rendering using new CSS [00:06:39] frameworks at that time to make my site [00:06:41] scale from sort of large desktop uh sort [00:06:44] of UIs down into mobile devices as well. [00:06:47] And then we have perhaps the most [00:06:48] pivotal era before the the current one [00:06:51] we're entering now which was the cloud [00:06:53] and where we really embraced cross [00:06:54] platform and open source uh truly and [00:06:57] wholly across the entire stack. We [00:06:59] rebooted the entire platform on top on [00:07:01] top of .NET Core. We adopted Linux, [00:07:04] macOS, and containers and performance [00:07:06] really became a feature here because it [00:07:08] mattered. It cost real money when you [00:07:09] were running it on someone else's [00:07:11] computer. And that brings us to today [00:07:13] which is AI where probably the biggest [00:07:15] change in how we've built um uh software [00:07:18] ever. [00:07:19] So, speaking of AI, I think it's fair to [00:07:21] say that this year has seen more change [00:07:23] to the world of software development [00:07:24] than any year before it. And I get the [00:07:27] feeling that we're only really just [00:07:28] getting started. Given that, it's [00:07:30] understandable that folks might question [00:07:32] what's next for .NET. [00:07:33] But if you take anything away from .NET [00:07:35] Conf this year, let it be that .NET is [00:07:37] durable, that we've been here through [00:07:39] all the changes of the past 25 years and [00:07:42] we're working hard to move forward with [00:07:43] this one as well. [00:07:46] And so with that, I'd love to announce [00:07:48] that .NET 11 is now available. It's [00:07:50] rolling out now. So, you can go and grab [00:07:52] .NET 11, follow along with what you're [00:07:54] going to learn today and tomorrow and [00:07:56] for the rest of this week. And with [00:07:58] that, I would love to throw it to Mads [00:08:00] to talk about C Sharp. [00:08:01] >> Well, thank you, Damian. I'm Mads [00:08:03] Torgersen. I dabble in C Sharp. And I [00:08:06] want to show you just one the new Csharp [00:08:08] features today, probably the most [00:08:10] anticipated and requested [00:08:13] for a long, long time, which is unions. [00:08:16] So unions are for this kind of situation [00:08:18] where I'm I want to use a couple of like [00:08:20] a handful of types together that I think [00:08:22] of as [00:08:23] pets. [00:08:24] But that notion is not inherent in how [00:08:27] these types are declared. And so my best [00:08:30] option is really to just [00:08:32] use a common [00:08:33] base type to hold them. In this case, [00:08:36] the common base type is object. So [00:08:37] that's pretty bad because that means [00:08:39] a lot of other things can sneak in [00:08:41] there. I have no type safety around it. [00:08:43] And when I go to consume my pets, you [00:08:46] know, we have a similar related problem [00:08:48] that, you know, I get a warning on my [00:08:50] switch expression here, for instance, [00:08:52] saying, you know what? [00:08:54] You should also deal with all the other [00:08:55] kinds of objects in the whole world [00:08:57] here. [00:08:58] And I really have no good options for [00:09:01] that. I could go and like catch all, but [00:09:04] what should I do here? I can, you know, [00:09:07] there's nothing good I can do. I could I [00:09:09] could throw, which is essentially what [00:09:11] happens if I don't act on the warning. [00:09:12] So that that's the situation that we are [00:09:16] trying to remedy with unions. And so [00:09:17] unions [00:09:19] are just another kind of type [00:09:21] declaration where you can introduce this [00:09:24] notion of pet make it manifest [00:09:27] without the participation of the of the [00:09:30] types involved. I can just say a pet is [00:09:31] either a dog [00:09:33] or a cat or a bird in this case. [00:09:36] And that's really it. I am [00:09:38] I am just saying pet is a union of these [00:09:40] other types. And then when I go use it, [00:09:43] I have I have an actual type [00:09:45] that [00:09:47] apparently, as you can see here, a dog [00:09:50] for instance, one of the case types is [00:09:53] in fact a pet in the sense that there's [00:09:55] an implicit conversion. So that's great. [00:09:57] What's even more great is that for these [00:09:59] things that I don't consider pets, [00:10:01] there's no implicit conversion. So now I [00:10:03] actually get strong type safety [00:10:05] making sure getting the languages help [00:10:08] to make sure that I only put the [00:10:10] in my collection here that I that I want [00:10:12] in there. So you really have [00:10:14] um um increased safety, you have [00:10:17] increased we could call it clarity of [00:10:21] uh intent here. And you know, clarity, [00:10:23] safety, those are things that are great [00:10:25] regardless of whether a human or an [00:10:27] agent are actually working on the code, [00:10:29] right? So that's the kind of feature um [00:10:32] that makes uh lifts all C sharp code if [00:10:34] you will. Now if we go and look at the [00:10:36] consumption down here as well, you'll [00:10:38] notice that I don't actually get to [00:10:40] um match against things that aren't pets [00:10:43] anymore cuz [00:10:45] uh the language knows full well that a [00:10:46] shark can never be a pet. So you don't [00:10:48] even get to put that case in here. And [00:10:50] maybe more importantly, that [00:10:52] exhaustiveness warning, that warning [00:10:54] saying you haven't exhausted all the [00:10:56] possibilities is gone because I am in [00:10:59] fact exhausting all the possibilities. [00:11:01] Um and that actually [00:11:04] all of a sudden, ironically, with that [00:11:06] warning going away, it sort of makes the [00:11:08] warning useful again because if I were [00:11:11] to go and add another case type [00:11:14] to my uh union type here, [00:11:17] it sort of sends a signal to the uh [00:11:19] consumption sites, right? It says, oh, [00:11:21] you are no longer exhaustive. You're no [00:11:23] longer hand handling everything. And so [00:11:26] uh this is now actionable. I can go and [00:11:28] actually [00:11:29] handle hamsters, whatever that looks [00:11:31] like. [00:11:32] Um maybe it looks like this. Um [00:11:35] so oh uh maybe it looks like this. [00:11:39] And so um that's just one example of um [00:11:43] features that uh coming in C sharp 15. [00:11:46] Um there's a slide that uh [00:11:49] you can have a look at here, take a [00:11:50] quick screenshot that I'm not uh going [00:11:52] to go through, [00:11:53] but I am going to deep dive on a lot of [00:11:56] this with Dustin Campbell in a talk [00:11:57] later. A little later in this keynote, [00:11:59] you'll hear from uh [00:12:01] uh which uh Lander that uh about our [00:12:05] improvements to the runtime [00:12:07] where we are making um async a lot [00:12:09] faster. And also we have a preview [00:12:11] feature that you can see on here, [00:12:13] to help make unsafe uh ironically [00:12:15] actually safer. Um so uh please please [00:12:19] enjoy uh C# 15. I'm so excited to get [00:12:21] unions and other stuff to you finally [00:12:24] and uh can't wait to see what you do [00:12:25] with them. And with that um my lovely [00:12:28] colleague Chad slid into place next to [00:12:30] me and I'll hand it over to him. [00:12:32] >> Thanks. [00:12:33] I'm Chad Husk and I would like to spend [00:12:35] a little bit of time telling you about [00:12:37] the .NET CLI itself, the vehicle that [00:12:40] all of our foundational experiences are [00:12:41] built on. [00:12:43] This slide amazes me. With .NET 11 we [00:12:45] can see that the CLI usage truly does go [00:12:48] to 11. Our usage uh has roughly tripled [00:12:51] in the past year alone and that makes it [00:12:53] all the more important that the CLI be [00:12:56] performant for all of those different [00:12:58] operations and it provide coverage for [00:13:01] all of the different operations that [00:13:03] human and agentic users need on a daily [00:13:05] basis. [00:13:06] So let's talk about some of those [00:13:07] features, some of the new enhancements [00:13:09] coming in 11. We're going to start with [00:13:11] file-based apps. We've been talking [00:13:13] about them pretty consistently for the [00:13:14] past couple years because they're a very [00:13:16] easy and lightweight way to get into [00:13:19] programming in .NET removing a lot of [00:13:21] the ceremony. We've enhanced them in [00:13:23] .NET 11 so that you can actually [00:13:25] reference separate files in your sort of [00:13:29] root application. In this application we [00:13:31] have a simple infinite loop where we are [00:13:33] creating a report of some kind rendering [00:13:36] it to the console and then waiting a bit [00:13:38] and doing it again. The magic is those [00:13:40] two lines at the top that include [00:13:42] these two files, the first for reporting [00:13:46] or rendering the actual report and the [00:13:48] second for creating a report. This is [00:13:51] all dummy code. You could easily [00:13:53] scaffold this out yourself, but it all [00:13:55] just works with .NET build, .NET run, [00:13:58] all of the commands that you are used to [00:13:59] using. [00:14:00] And now in .NET 11 even more commands [00:14:03] work with file-based apps as well. They [00:14:06] behave more and more like standard [00:14:07] projects in that you can use .NET [00:14:10] package add and .NET reference add to [00:14:13] add project references and package [00:14:14] references to your file-based [00:14:16] applications. So we're really [00:14:18] approaching parity in a many of the key [00:14:20] ways that people would use projects with [00:14:22] this new kind of application. [00:14:25] And a little bit of icing on top of the [00:14:27] cake, you can now format them [00:14:29] consistently as well. This is coming [00:14:32] from the the shared sort of Roslyn [00:14:34] workspaces that understand these kinds [00:14:36] of files. So if you write custom tools [00:14:39] that work with those Roslyn workspaces, [00:14:41] you can also get support for file-based [00:14:44] apps in this way. [00:14:46] But all of the CLI features aren't [00:14:47] focused solely on file-based apps. We [00:14:50] have fundamental improvements that will [00:14:52] benefit all .NET developers. .NET Watch [00:14:55] is much more resilient in 11 than it was [00:14:57] in 10. It can handle unexpected [00:14:59] application crashes much more [00:15:01] gracefully. You can see in the demo [00:15:03] here, I apologize for the slightly small [00:15:05] text, but .NET Run has gotten much more [00:15:07] intelligent for interactive use. If your [00:15:10] project supports multiple target [00:15:12] frameworks or multiple runtime [00:15:13] identifiers or if you're a Maui project [00:15:16] that can support multiple devices and [00:15:18] simulators, .NET Run will interactively [00:15:20] prompt you for these. In this sample, we [00:15:22] have a Maui project that is being run [00:15:24] that will [00:15:26] pick a particular device to to run the [00:15:29] application on. [00:15:31] Container publish has also gotten much [00:15:33] more capable. We can now publish to the [00:15:35] WSLC and macOS container runtimes [00:15:38] natively with no other container tooling [00:15:41] installed aside from those. [00:15:43] That's a personal favorite of mine. [00:15:45] In addition, the SDK itself, we've [00:15:47] invested in its size. So it is now [00:15:49] cheaper to get onto your machines in the [00:15:51] first place. This might not matter as [00:15:53] much for your client machines, but for [00:15:56] your Docker container usage, a smaller [00:15:59] SDK download means a smaller image, [00:16:01] which means faster network and faster [00:16:03] and cheaper network traffic overall. [00:16:05] And finally, we have a new interesting [00:16:07] way to acquire the SDK in the .NET Up [00:16:10] Install Manager, a native tool that [00:16:12] we're hoping to expand the usage of over [00:16:14] time. [00:16:16] As Damian mentioned earlier though, [00:16:18] performance is a feature as well. And I [00:16:20] want to briefly call out a couple things [00:16:22] we've done there. [00:16:23] In .NET 11, the .NET CLI itself is a [00:16:26] native AOT application, which cuts out [00:16:28] hundreds of milliseconds of overhead [00:16:30] from many common operations. I've got a [00:16:32] talk about this coming up in about an [00:16:34] hour and a half if you're interested in [00:16:35] many of the details there. [00:16:37] In addition, your builds [00:16:39] can get faster in .NET 11 as well. [00:16:43] And if I bring my slides back, then [00:16:45] you'll be able to learn more about that. [00:16:48] Um but the deal with the builds is we [00:16:50] have a feature called multi-threaded [00:16:52] mode in .NET 11 that you can opt into [00:16:56] with a single flag, MT. And if you do [00:16:59] this, both your cold builds and your [00:17:01] warm builds will see significant [00:17:03] changes, we think. This is important not [00:17:05] just for your [00:17:06] fresh end-to-end builds, but also that [00:17:08] iterative inner loop development that is [00:17:11] so common with agents today. [00:17:13] I also have a talk later today about [00:17:14] this that I would be happy to go into [00:17:16] more details on. [00:17:18] Here's a brief summary of the talks that [00:17:20] we have coming up about some of these [00:17:21] topics. I mentioned mine too about the [00:17:23] .NET CLI and MS Build, but there are [00:17:26] also some about the file-based app [00:17:28] support coming tomorrow and a little bit [00:17:31] later or sorry, yeah, and a little bit [00:17:33] later today .NET Run and how Maui [00:17:35] integrated into that. [00:17:36] All of this stuff is built on top of the [00:17:38] functionality that the .NET runtime [00:17:40] provides us. And to tell us more about [00:17:42] that, I've got Rich. [00:17:44] >> All right. [00:17:45] Um so today I'm going to be Oh yeah, I'm [00:17:47] Rich Lander. [00:17:49] And today I'm going to be talking about [00:17:51] two features that the runtime team and [00:17:53] C# compiler teams have built together. [00:17:56] So the first one is runtime async. [00:17:58] And so the goal here is making your [00:18:00] async code faster and cheaper. We [00:18:02] haven't changed anything with respect to [00:18:04] the [00:18:05] async syntax. So all your code just [00:18:08] stays exactly like it is. [00:18:10] Um we have this features MS Build [00:18:13] property. That's how you opt into this [00:18:15] feature in .NET 11. We expect it to be [00:18:17] the default in .NET 12. And so the [00:18:19] promise of this [00:18:20] is that when you opt into it, [00:18:22] uh the C# compiler doesn't generate any [00:18:25] async state machines. Uh there's no need [00:18:28] to use value task and we can deliver [00:18:31] near synchronous performance for async [00:18:33] code, which is a claim that we've never [00:18:34] been able to make before. [00:18:36] Here's a simple async program. [00:18:48] have heard about, you know, async state [00:18:49] machines and that sort of thing. They're [00:18:51] quite large and this is what they look [00:18:52] like. You in in most cases, you don't [00:18:55] have any reason to look at this. [00:18:57] If we look at the lowered C# for runtime [00:18:59] async, you see that this is almost the [00:19:01] exact same program again that we started [00:19:03] with. The only difference is that your [00:19:06] task.delay here, like your your async [00:19:08] call has been wrapped in a jit intrinsic [00:19:11] on the async helpers class and that's [00:19:14] where the jit then does uh takes care of [00:19:16] all the async machinery. [00:19:19] In terms of uh the value that we deliver [00:19:21] with this, you can see on this slide [00:19:24] that we have a variety of uh you know, [00:19:26] call stack depths and as the call stack [00:19:29] deepens, you can see that with [00:19:32] uh compiler async that the allocations [00:19:34] increase. If we look at the runtime [00:19:36] async um case, you see that the [00:19:40] allocations stay constant at at 0 bytes [00:19:42] independent of um [00:19:45] of uh call stack depth. And this is in [00:19:47] the synchronous completion case. [00:19:51] Um let's switch now to the the second [00:19:53] feature, which is memory safety, which [00:19:55] which Mads referenced earlier. And so [00:19:57] the goal here is that we want to make C# [00:20:00] code uh safer. [00:20:02] These are the MSBuild properties that [00:20:03] you use for this feature. It's in [00:20:05] preview in .NET 11. It'll be GA prod in [00:20:09] .NET 12. Just want to call attention to [00:20:11] this last property, the allow unsafe [00:20:13] blocks. [00:20:14] Um it is false by default currently, you [00:20:17] know, all all the way back to C# 1.0. It [00:20:20] actually remains false by default. We're [00:20:22] not changing that. [00:20:24] If you want to be in super safe mode, [00:20:26] leave it exactly like this. If you need [00:20:28] to write unsafe code, then you would set [00:20:30] this to true. [00:20:32] As a team, security is our top priority. [00:20:34] It has been our top priority. It will [00:20:36] always be our top priority. [00:20:38] Um and memory safety is a major part of [00:20:40] that. Microsoft made a statement a [00:20:42] couple years ago that 70% of [00:20:45] vulnerabilities are due to memory safety [00:20:46] issues. Google actually made a similar [00:20:48] statement around the same time. [00:20:50] Uh you know, we take this super [00:20:52] seriously. [00:20:53] C Sharp already is a memory safe [00:20:55] language, but there's some changes that [00:20:57] we that we can make and that's exactly [00:20:59] what we're doing in this release. [00:21:02] Rust is kind of the gold standard for [00:21:04] memory safety. Swift came around uh last [00:21:07] year, 2025, and they made some changes [00:21:10] to kind of bring their their language up [00:21:11] to the same standard. [00:21:13] We're doing the exact same thing um with [00:21:16] what we call memory safety V2 um in this [00:21:19] .NET 12 release. [00:21:22] And you can see on this slide already [00:21:23] that it's like, oh wow, this syntax [00:21:25] looks like almost exactly the same. Yes, [00:21:27] that that's the intent. Is that if you [00:21:29] look at unsafe code across all of these [00:21:31] three languages, it looks almost exactly [00:21:33] the same. The model is pretty much [00:21:35] exactly the same. The only place where [00:21:38] we've made some differences is with [00:21:40] where we've chosen to use warnings [00:21:42] versus errors. And with C Sharp, it's uh [00:21:45] unsafe code is disallowed by default. [00:21:49] Um [00:21:50] here's an example of uh what the code [00:21:53] looks like. You can see that this this [00:21:55] method um exposes a safe facade and [00:21:59] calls unsafe code. Um and you can see [00:22:01] this um [00:22:02] uh [00:22:03] we now have unsafe expressions, which is [00:22:05] new. [00:22:07] Andy Gocke and I will be going deep on [00:22:09] this uh later today at 3:30 p.m. and we [00:22:12] hope you join us. Now we're going to [00:22:14] hear about the web from Dan. [00:22:16] >> All right. Thank you, Rich. Hi everyone. [00:22:19] I'm the product manager for ASP.NET [00:22:20] Core. Let's take a look at what's new [00:22:22] for web developers in .NET 11. [00:22:25] Businesses, of course, need software [00:22:27] that they can trust. They need clear API [00:22:29] contracts. They need rich interactive [00:22:32] user experiences. Uh they need protected [00:22:34] actions. Now this application is a [00:22:37] customer service application that's [00:22:38] built using ASP.NET Core and Blazor. And [00:22:41] here we have a customer uh service rep [00:22:43] that's trying to help a customer return [00:22:44] this this docking station. Let's take a [00:22:47] look at this request from the APIs on [00:22:49] the back end to the business logic to [00:22:51] the final confirmation to see how .NET [00:22:53] 11 helps every step of the way. All [00:22:56] right, so first our customer service rep [00:22:57] needs to decide how to process this [00:22:59] return. They can decide to either do a [00:23:01] refund or they can do a replacement. And [00:23:04] each of those have different different [00:23:05] properties. How can we model this in our [00:23:07] application? Well, with the new C# union [00:23:10] support of course. Let's take a look at [00:23:12] what that looks like in code. So right [00:23:14] here we have our resolution C# union [00:23:17] type for representing the the return. It [00:23:19] can be either a refund or a replacement. [00:23:22] So we don't have to take all of those [00:23:23] properties and stick them on the same C# [00:23:25] class and then remember uh which [00:23:26] combinations are valid. We can model [00:23:28] those different options explicitly. We [00:23:31] can now use this resolution union in our [00:23:33] APIs. I have a couple of APIs right here [00:23:36] that use that union type. Here they are. [00:23:39] So first one is uh you know they're both [00:23:40] returning that resolution union. The [00:23:43] first one returns a refund and the [00:23:45] second one returns a replacement. So [00:23:47] let's see what that looks like when we [00:23:48] send some requests. We'll send a request [00:23:50] first for a refund. You see that we get [00:23:53] a nice clean JSON payload back [00:23:55] representing the the refund. And if we [00:23:56] send a request for the replacement, [00:23:59] again a nice clean JSON response for the [00:24:01] replacement. So System.Text.Json knows [00:24:03] how to handle unions. It knows how to [00:24:05] serialize the active case. There's no [00:24:08] need for like a union wrapper or any [00:24:09] sort of type discriminator. [00:24:11] If you look at how that's then [00:24:12] represented in our API contract, let's [00:24:15] send a request to get the open API [00:24:16] document. Now first of all it's up at [00:24:18] the top I want to make sure I point out [00:24:19] that you know we're using open API 3.2 [00:24:22] in .NET 11 so we support the latest [00:24:23] version of the spec with all its great [00:24:25] new features. And then if we scroll down [00:24:27] here, we should be able to find that [00:24:29] resolution type. There it is. There's [00:24:30] its schema. And you can see that it's [00:24:32] any of a refund or a replacement. So you [00:24:35] get a nice clean API contract for anyone [00:24:38] trying to consume our API. Very nice. [00:24:41] Now for our web UI developers, you can [00:24:43] use that union as well. Here's what the [00:24:45] that looks like in Razor code. So up [00:24:47] here at the top, we're just switching on [00:24:48] the various union cases, refund or [00:24:50] replacement, and then you just render [00:24:51] the corresponding UI logic. So that's [00:24:53] how we're getting the uh the app to show [00:24:55] up like it is. Fantastic. Okay, so we're [00:24:57] able to model this choice. Um what [00:24:59] should we choose? Let's go ahead and [00:25:00] choose a replacement. Now the service [00:25:02] rep now needs to pick the replacement [00:25:03] model. Uh let's try this first one. [00:25:06] Now when we do that, you can see that [00:25:08] the UI is actually doing a a validation [00:25:10] check to see if this model is available [00:25:12] in inventory. And this is an async [00:25:14] validation check, which is new in .NET [00:25:16] 11. Now this one unfortunately is not [00:25:18] available in inventory, so the [00:25:19] validation check fails. Uh if we select [00:25:21] the other option, [00:25:23] that one works. All right, great. So how [00:25:24] do we model that in code? So let's go [00:25:26] back here and let's look at the this [00:25:27] replacement request type. So this is [00:25:29] using normal data annotations to uh [00:25:32] represent all of our validation logic. [00:25:34] But then we also have this custom [00:25:35] validation uh rule to see if the product [00:25:37] is actually in stock. If we scroll down [00:25:39] a bit, we can see that that in stock [00:25:41] attribute is actually a new async [00:25:43] validation attribute, which is new in [00:25:45] .NET 11, which allows us to implement [00:25:47] our async validation code. All right, [00:25:49] cool. So that just just works with with [00:25:52] Blazer. Like you can see, here's the the [00:25:53] code for that form. It's just using the [00:25:55] normal data annotations validator [00:25:57] component which knows how to run the [00:25:58] async validation rules. And then we can [00:26:00] also get these nice APIs like this is [00:26:02] validation pending on the edit context [00:26:05] uh so that we can check if a async [00:26:06] validation rule is in in progress and [00:26:09] you know show that little little [00:26:10] spinner. [00:26:11] Now of course we don't want to just [00:26:11] check these validation rules on the UI [00:26:13] layer. We also want to do it on the back [00:26:15] end. So we can use this same type in an [00:26:17] API. [00:26:18] Over here we have another API that's [00:26:20] using that same replacement request. And [00:26:22] when we send a request, it'll run the [00:26:24] same async validation logic. So let's [00:26:26] give that a try. Let's send a request to [00:26:28] get a replacement for a one that's not [00:26:29] available in inventory. There was a [00:26:31] little delay there as it did the async [00:26:32] check and then we got it, you know, 400. [00:26:33] Sorry, that model's not currently [00:26:35] available. If we send a request for a [00:26:37] model that actually is available in [00:26:38] inventory, 200 okay. So we're good to [00:26:40] go. So that's the new async validation [00:26:42] support in .NET 11. [00:26:44] All right, good. So let's go ahead and [00:26:46] uh let's select that model. Looks like [00:26:48] it's in inventory, so we're good to go. [00:26:49] And now we just need to confirm the uh [00:26:51] the final resolution for this return. [00:26:53] Now what we don't want is we don't want [00:26:55] someone to be able to forge requests to [00:26:57] our application, you know, using the the [00:26:59] the browser session. Like we don't want [00:27:01] someone to stand up another website like [00:27:03] this one, which, you know, it's still on [00:27:04] the same host. It's on localhost, but [00:27:06] it's using a different port, so a [00:27:08] different origin. Now if I try to send [00:27:10] this request from a different site to my [00:27:12] original app, ASP.NET Core is going to [00:27:14] protect me. Let me go ahead and do that. [00:27:16] I'm going to send the request and let's [00:27:17] look at the response. Yeah, so it fails, [00:27:19] which is good. ASP.NET Core detected [00:27:21] that was not a same origin request. And [00:27:23] the way it did that is we go here in the [00:27:24] browser tools. You can see down here at [00:27:26] the bottom that the browser is now [00:27:28] sending these lovely fetch metadata [00:27:30] headers that tell us that request came [00:27:31] from the same site, was on localhost, [00:27:34] but not the same origin. It was on a [00:27:35] different port. ASP.NET Core then [00:27:37] detected that and uh rejected the [00:27:40] request automatically. I didn't have to [00:27:41] do anything and I didn't have to mess [00:27:43] around with like anti-forgery tokens. So [00:27:45] it's secure and performant uh by [00:27:48] default. If I send that same request [00:27:49] from the actual application, let's bring [00:27:51] up the dev tools again so we can see [00:27:52] what's happening. Let's confirm this [00:27:54] replacement. All right, yep, that one [00:27:56] worked. And if we scroll down to the [00:27:57] bottom, we should see that the fetch [00:27:59] metadata headers are saying, yep, that's [00:28:01] same origin. We're good to go. ASP.NET [00:28:03] Core lets that one through. All right, [00:28:05] cool. So we were here able to um [00:28:09] you know, process that return. Uh [00:28:11] ASP.NET Core and Blazor in .NET 11 [00:28:13] helped us build software that we can [00:28:15] trust. We could use C# unions to model [00:28:17] our APIs and their contracts. We could [00:28:19] implement our validation logic using [00:28:21] async logic with the new async [00:28:22] validation support. And we have [00:28:24] automatic cross-site request forgery [00:28:26] protection uh to help keep our our our [00:28:28] actions protected. Now of course that's [00:28:30] not not all that's available in .NET 11. [00:28:32] There's tons more, tons of new features [00:28:34] for web developers, for Blazer, minimal [00:28:36] APIs, and and SignalR. So you're going [00:28:38] to want to check out all the other web [00:28:39] development sessions at .NET Conf to [00:28:41] learn all about those. [00:28:43] All right, cool. So next, let's go learn [00:28:45] about .NET Maui from Gerald. [00:28:47] >> Thank you, Dan. Hey everyone, I'm Gerald [00:28:50] Versluis on the .NET Maui team, and I'm [00:28:52] going to show you all the cool things [00:28:54] that we've been doing for .NET 11 in [00:28:56] .NET Maui, of course. But before I do [00:28:58] that, I want to take you back a little [00:29:00] bit in time. Damian already mentioned it [00:29:02] like, hey, at some point Xamarin came [00:29:03] around, but even before that we had Mono [00:29:06] Touch, which brought .NET to the iPhone, [00:29:08] right? Shortly after that we got [00:29:10] Android, Xamarin, the rest is history. [00:29:12] Now we're here on .NET Maui, and for [00:29:14] .NET 11 it's basically coming full [00:29:16] circle because now we're running our [00:29:18] .NET Maui apps on Core CLR, which is [00:29:21] like the next biggest thing. So [00:29:23] throughout 70 years, it's almost as old [00:29:25] as I am, [00:29:26] it will it your apps just followed you [00:29:29] through every platform, all the devices, [00:29:31] all the way from iOS [00:29:33] 3 to Windows Phone 8 to Windows 11, [00:29:36] right? And to do all the things that we [00:29:38] have been doing, our our team really [00:29:40] turned it up to 11, right? We've really [00:29:43] adopted the agentic engineering [00:29:46] in all aspects of our software [00:29:49] development lifecycle because a year ago [00:29:52] we were merging 400, maybe 500 PRs a [00:29:54] month, right? On a good month. But now, [00:29:57] last month, just last month, it was [00:29:59] 1,600, right? Over 1,600. So that's [00:30:01] roughly four times as much just because [00:30:04] of the power of Copilot. And 80% of that [00:30:06] were even authored by Copilot. So how [00:30:09] cool is that? The way we build [00:30:11] drastically changed, but still it's [00:30:14] everything that you would expect, right? [00:30:16] The quality is still the same. [00:30:18] Now, what did we do for .NET 11? [00:30:20] Core CLR, I already mentioned it. Core [00:30:22] CLR now everywhere. The runtime that you [00:30:25] are used to in every other .NET project [00:30:28] in the ecosystem now also available on [00:30:31] Android, iOS, Mac Catalyst, and all [00:30:34] these things. [00:30:36] Native AOT, right? We've already had [00:30:38] that. I have a little sample I'd to show [00:30:40] you in a little bit. Um, and doing our [00:30:43] measurements on that, the app has been [00:30:45] 2.4 times faster in startup, 14% [00:30:48] smaller, and all these cool things. And [00:30:50] we already introduced in .NET 10 the [00:30:52] XAML source generation and all kinds of [00:30:53] other XAML improvements. Um, they're now [00:30:56] on by default for .NET 11, right? Of [00:30:59] course, everything on the latest [00:31:00] platforms we are also coming together [00:31:02] with Avalon to Linux and the browser, [00:31:05] and we're doing all kinds of amazing [00:31:06] things on Maui Labs as well. So go check [00:31:10] that out. And there's of course a lot a [00:31:11] lot a lot more. Um, just like previous [00:31:14] year, we have been focused on quality, [00:31:16] stability, right? That's always top of [00:31:17] mind, but we've been able through [00:31:19] Copilot to implement a lot of my [00:31:22] favorites, which were like the small [00:31:23] paper cuts that we never really got to [00:31:25] before, but now we got the long press [00:31:27] gesture recognizer, a bunch of maps [00:31:29] improvements. Um, Material 3, right? Is [00:31:32] one of those things that we didn't have [00:31:34] and all kinds of other cool things that [00:31:36] you'll see. [00:31:37] And you've already been noticing, right? [00:31:39] Thank you for filling out the surveys [00:31:41] because our um developer satisfaction [00:31:43] has been as an all-time high even from [00:31:46] the Xamarin days now with .NET Maui. Um, [00:31:48] so thank you so much for all of your [00:31:50] support there. And of course, we cannot [00:31:52] go without AI, right? And we have AI in [00:31:55] multiple forms going with .NET Maui [00:31:56] because you can put AI in your apps [00:31:58] because apps are very suitable to um use [00:32:02] with AI, right? They have all the [00:32:03] sensors, all the things. You have your [00:32:05] camera, you have your microphone, you [00:32:07] can type to it, you can talk to it. So [00:32:09] now we've made it easier than ever to [00:32:11] put AI inside of your app and make that [00:32:13] user experience for your users the best [00:32:15] there is as well. But of course, you're [00:32:17] also building apps, your developers, [00:32:19] right? So you want to build your apps [00:32:21] through agents, and you can do that as [00:32:23] well. We've built a couple of things in [00:32:25] Maui Labs that I already mentioned. One [00:32:26] of them is Dev Flow, which is really [00:32:28] super amazing. That will make your [00:32:31] app available to the agent and your [00:32:33] agent can interact with it. It can [00:32:34] inspect it, it can look at it, and it [00:32:36] can self-iterate over your Maui app, [00:32:38] making building apps much easier than [00:32:40] ever before. [00:32:42] Now, all of this I applied in a little [00:32:44] app that is the .NET Conf app, which is [00:32:46] absolutely open source, absolutely built [00:32:48] with agents. So it is on my GitHub [00:32:51] repository that you can see right here [00:32:53] and also available on the stores. So if [00:32:55] you go to the store right now, you can [00:32:57] download it, you can favorite all of [00:32:58] your sessions and things. And I've got [00:33:01] it here running, so you can see it, [00:33:03] right? It's running here. Actually, if [00:33:05] you go to the session right now, you can [00:33:07] see this one is live, the keynote is [00:33:08] live. This is all there's no magic going [00:33:10] on here. This was not prepared. It's [00:33:12] actually here. You can see all the [00:33:13] speakers. You can click sessions. You [00:33:15] can create your own favorite schedule [00:33:17] right here for the things that you want [00:33:18] to see. You will get notifications if [00:33:20] that's what you want. And you can see [00:33:22] here [00:33:23] the whole .NET Conf basically unfold [00:33:26] before you, right? So and that's the [00:33:28] point that I want to make here. The [00:33:30] nature of .NET Maui is that it unlocks [00:33:32] all the power of the native platform. So [00:33:35] it's already here for you [00:33:37] on the iPhone Duo that is just out, the [00:33:39] latest and greatest, and you can just [00:33:40] play with it everything here, right? So [00:33:42] download it now, let us know what you [00:33:43] think. And you can see all the new [00:33:45] features in action right here in this [00:33:47] project. So with that, we've got a bunch [00:33:50] of other sessions, of course. [00:33:52] I will be here back later today to tell [00:33:54] you more in depth about all the things [00:33:56] that we've been doing for .NET Maui. [00:33:58] We've already mentioned Jonathan Peppers [00:34:00] with the tooling updates. There's a [00:34:01] bunch of cool community sessions going [00:34:03] on here as well. So definitely go check [00:34:05] that out. And Louise is here now to tell [00:34:07] us more about how to modernize your app [00:34:09] for .NET Maui. [00:34:10] >> Awesome. Thanks so much. Hi folks, I'm [00:34:11] Louise and I lead product working on AI [00:34:14] libraries for the .NET team. [00:34:16] So we've seen how .NET has moved forward [00:34:18] over the years, but modernization means [00:34:20] different things to the teams and [00:34:21] applications that are building on .NET. [00:34:24] For HTTP Master, [00:34:27] that meant modernizing the foundations [00:34:29] of the decades-old [00:34:31] application to a new foundation using [00:34:34] new [00:34:35] .NET capabilities and new .NET APIs. [00:34:38] And doing so made it easier to maintain [00:34:39] and add new modern capabilities to their [00:34:41] applications. [00:34:42] Now, it's not all or nothing, right? So, [00:34:44] in the case of Visual Studio, uh they [00:34:46] were able to take a select number of [00:34:47] components and modernize those to modern [00:34:50] .NET. [00:34:51] Uh and in doing so, they were able to [00:34:52] access new modern libraries uh and also [00:34:55] uh effectively add new capabilities into [00:34:57] their uh application while at the same [00:35:00] time maintaining some of the existing [00:35:01] core components uh of their application [00:35:03] intact. [00:35:05] For Atlassian and [00:35:07] NHW, uh that meant that they modernize a [00:35:10] processing pipeline and together with [00:35:12] hardware and architecture changes, they [00:35:14] were able to achieve faster processing [00:35:16] and hardware utilization. [00:35:19] And within Tune, what that shows us is [00:35:21] that you don't have to do it all [00:35:22] yourself. They were able to save weeks [00:35:24] of a library migration by leveraging AI [00:35:26] assistant. [00:35:28] Now, let's hear from the Windows 365 [00:35:29] team about how they're modernizing the [00:35:31] way that they work. [00:35:33] >> Windows 365 is Microsoft the Cloud PC [00:35:35] service. [00:35:36] It streams a full Windows experience to [00:35:39] almost any device and our team built [00:35:42] over 100 microservices with ASP.NET Core [00:35:45] and Azure Functions. [00:35:48] Different team on these service in [00:35:50] separate repos, [00:35:51] making the local setup a dependency and [00:35:54] the test more complicated. Today, [00:35:57] Windows 365 Cloud PC are used by tens of [00:36:00] thousands of organizations crossing the [00:36:02] streets and around the world. [00:36:05] Behind the scenes, it's made up of [00:36:07] hundreds of a microservice and over [00:36:10] 4,000 scenario tests. When we started, [00:36:13] developers had to reproduce cross-repo [00:36:15] dependency. [00:36:17] Infrastructure like Cosmos DB, external [00:36:20] system like Microsoft Entra, and the [00:36:22] test data just to run one service [00:36:25] locally. Our backend is managed HTTP [00:36:28] microservices. [00:36:30] And the .NET give us one dependable [00:36:32] platform for all of them. [00:36:34] Every team shared the same C# skills and [00:36:38] it feature-rich ecosystem give us proven [00:36:41] libraries for almost everything we need. [00:36:44] ASP.NET Core give us every API the same [00:36:48] foundation with dependency injections, [00:36:51] configurations, and health check [00:36:53] built-in. [00:36:55] Visual Studio gives us a great F5 [00:36:57] debugging experience, and Azure [00:37:00] functions and Azure SDKs make Azure [00:37:03] integration simple. So we wanted a [00:37:06] developer to clone the repo, press F5 [00:37:09] for a fully configured manual testing [00:37:11] environment, or run all automated [00:37:14] scenario tests with one click for [00:37:17] validation. [00:37:18] It replaced hours or days spent [00:37:21] recreating the system locally. [00:37:24] Aspire and the App Host compose the [00:37:26] service and its dependency, start them [00:37:29] together, discover them automatically, [00:37:32] and show their health, log, metrics, and [00:37:36] the trace in one place. [00:37:38] So our team Windows 365 added multi-repo [00:37:41] dependencies, [00:37:43] emulators, seed data, and Aspire [00:37:46] scenario tests that are running cloud [00:37:48] test. [00:37:49] Before we consider Agentic AI, the [00:37:52] developer's machines, the continuous [00:37:54] integration, and the build agent needed [00:37:56] reliability to come first. [00:38:00] The same scenario had to behave [00:38:02] consistently in every one of these [00:38:04] examples. [00:38:05] So we standardized the the .NET SDK, [00:38:09] Azure functions worker, and Aspire [00:38:11] tooling across the developer and the [00:38:14] build machines. [00:38:15] We also replaced the fixed delays with [00:38:18] readiness check. [00:38:19] For example, Cosmos DB is health only [00:38:22] after its partition are available, [00:38:25] and the test starts only when every [00:38:28] required resource is running. [00:38:30] When those patterns were reliable, we [00:38:32] saw that onboarding every repo by hand [00:38:35] had become the bottleneck. [00:38:37] The work was repeatable, but there are [00:38:41] too many repos to update manually. [00:38:43] Once the foundation was reliable, and we [00:38:46] began onboarding more service. [00:38:49] The repetitive work become a natural fit [00:38:52] for agentic AI, [00:38:54] not as a replacement for the engineering [00:38:56] process, [00:38:57] as an accelerator for a process we [00:39:00] already understood. [00:39:02] route system take each repo through the [00:39:05] same loop, [00:39:10] learn. [00:39:12] we leverage agentic AI to check the [00:39:14] repo, [00:39:16] create a plan, make the scope to change, [00:39:19] render spire scenario test in cloud test [00:39:22] and the pull request gate, [00:39:24] then using the result to learn. [00:39:27] Aspire give developer and the AI the [00:39:29] health signal, [00:39:31] logs, metrics, and trace to diagnostic [00:39:34] issues. [00:39:36] Deterministic test block regressions [00:39:39] and every pull request remain human [00:39:42] reviewed before it proceeds. [00:39:44] .NET powers our service and Aspire helps [00:39:47] us, developer and the test them [00:39:49] together. [00:39:50] That reliable foundations let us use AI [00:39:54] to accelerate engineering [00:39:56] with tested changes and human review. [00:40:00] We are building on our .NET investment [00:40:03] to deliver today and take advantage of [00:40:06] what AI makes possible next. [00:40:11] >> That's amazing. Now modernization is not [00:40:13] just about your code and the way that [00:40:15] you work. We can also modernize your [00:40:16] applications by adding new AI [00:40:18] capabilities. [00:40:20] On the .NET team, we build the shared [00:40:21] foundations that power a growing AI [00:40:23] ecosystem that has seen million of [00:40:25] package downloads and hundreds of [00:40:26] dependent packages. [00:40:28] Now on screen you see just a few of the [00:40:30] examples of what developers are building [00:40:32] on these foundations. Let's make it a [00:40:34] little bit more concrete. [00:40:36] So [00:40:37] with AI, you can add new capabilities to [00:40:38] your applications without having to [00:40:41] change your application. In this case, [00:40:43] we have Jellyfin, which is an open [00:40:44] source media system built in .NET [00:40:46] and we've added semantic search so it's [00:40:48] even easier for folks to find the [00:40:50] content that they're looking for and [00:40:51] this is all made possible using the AI [00:40:53] libraries in .NET. And again, right, the [00:40:55] main takeaway here is that you don't [00:40:57] need to go and rewrite your entire [00:40:58] application. It can stay the same as it [00:41:00] is, but you're just enhancing and adding [00:41:02] new capabilities to it with the help of [00:41:04] AI. [00:41:06] Now, [00:41:08] it's not always just about search and [00:41:10] chat, right? One of the main things that [00:41:12] AI gives you is it shortens the gap [00:41:14] between intent and action. And so the AI [00:41:17] libraries in .NET can give you [00:41:18] capabilities across text, audio, images, [00:41:21] and so much more. [00:41:23] Now take this application that you're [00:41:24] seeing here [00:41:26] on playing here in this video. [00:41:28] And you know, sometimes video or [00:41:30] narrated demos are a better way to just [00:41:33] express and explain ideas, right? But [00:41:35] getting from that idea to something that [00:41:37] is working and a working video or [00:41:38] narrated demo takes a lot of work, [00:41:40] right? And so typically that process [00:41:42] starts with you coming up with the idea [00:41:44] that you want to communicate, then you [00:41:45] go ahead and draft the narrative that [00:41:47] you want to sort of tell about you know [00:41:49] this particular demo or idea. [00:41:52] You record it, you then go through an [00:41:54] editing sort of loop until you get to a [00:41:56] place where you feel happy and you [00:41:58] produce you know the final result. Now, [00:42:01] in this case AI can help you throughout [00:42:03] the whole process from the authoring and [00:42:04] the storyboarding all the way through [00:42:06] narration, captions, animations, and [00:42:09] thumbnail generation. [00:42:11] With AGUI and Blazer AI components you [00:42:13] can build collaborative experiences [00:42:15] where your users can help shape the [00:42:17] results with the help of AI. [00:42:19] And then behind the scenes in this [00:42:20] application we're also [00:42:22] leveraging a combination of local as [00:42:24] well as cloud hosted models. [00:42:26] And if you're using LLMs our writing [00:42:28] chat client lets you define policies [00:42:30] that match the task to the right model [00:42:33] capabilities. [00:42:36] But [00:42:37] it's not just about adding AI to your [00:42:38] .NET applications. Industry partners are [00:42:40] building on .NET [00:42:42] on the .NET technologies to deliver AI [00:42:44] experiences to developers. [00:42:46] I'm excited to invite Jeff from the [00:42:48] Hugging Face team to tell you more about [00:42:49] that. [00:42:51] >> Thanks for having me [00:42:52] >> Luis. [00:42:53] At Hugging Face, we're passionate about [00:42:55] making open AI models accessible to [00:42:59] everyone. And local AI is super [00:43:01] important to us. [00:43:03] We want to make it incredibly easy to [00:43:05] run AI models on your own computer so [00:43:08] you can use AI privately and for free. [00:43:11] And that's why we teamed up with the [00:43:13] llama cpp team to build llama for [00:43:16] Windows. [00:43:17] Llama for Windows is a lightweight app [00:43:19] that lives in your Windows system tray. [00:43:22] You can discover models from Hugging [00:43:24] Face, download them in one click, [00:43:27] and start chatting with them on your [00:43:28] computer. It's super easy to set up, [00:43:31] and everything runs locally on your PC. [00:43:35] And what's particularly exciting, I [00:43:36] think, for this audience is that we [00:43:38] built llama for Windows on .NET 10 and [00:43:43] WinUI 3 [00:43:44] with llama cpp powering inference under [00:43:47] the hood. [00:43:48] Developers can also use llama for [00:43:50] Windows to integrate AI models into [00:43:53] their own apps [00:43:55] as it exposes open AI compatible APIs. [00:43:59] And llama for Windows is completely [00:44:01] free. [00:44:03] It's open source, and you can download [00:44:05] it today on llama dot app. [00:44:09] And today I'm also super excited to [00:44:11] announce [00:44:12] that llama for Windows is going to be [00:44:14] available directly in the Windows store [00:44:18] later this week. [00:44:20] Thanks again, Luis, and back to you. [00:44:23] >> Thanks so much, Jeff. [00:44:26] Now, [00:44:27] on screen you're seeing just a few of [00:44:28] the capabilities that we've been working [00:44:30] on this year. Now, together they help [00:44:32] bring your business information into [00:44:34] your existing applications. They enable [00:44:36] you to choose the right intelligence and [00:44:37] modernize the capabilities of your [00:44:39] existing applications. [00:44:41] Now, we're going to go deeper into all [00:44:42] of these. I have a session coming up [00:44:43] later today, and you can see there's a [00:44:45] ton of other sessions talking about [00:44:46] things like MCP, Foundry, and a few [00:44:49] other things that we've been doing in [00:44:51] the space. [00:44:52] And I'd like to hand it over to Wendy to [00:44:53] tell you how you can use AI to build [00:44:55] applications. [00:44:55] >> Awesome. Thank you, Louise. [00:44:57] I'm Wendy, and I am a product manager [00:44:59] focusing on agentic development [00:45:01] experiences for .NET developers. Today [00:45:04] I'm going to talk to you a little bit [00:45:05] more about how you can take advantage of [00:45:09] agents to make your code better and to [00:45:11] take advantage of all these great .NET [00:45:13] 11 features. [00:45:14] Here I've got a party [00:45:16] RSVP app. It is got a slight problem. [00:45:19] It's overbooking, and so we're going to [00:45:22] try to fix that today. [00:45:24] So first, I have written a file-based [00:45:27] app that helps to reproduce the problem. [00:45:31] And so I obviously as a human can't [00:45:33] double click at the same time on [00:45:36] the RSVP. This one, if two users happen [00:45:38] to click at the same time, [00:45:41] it confirms them both even if there's [00:45:43] only one slot left. And so we're going [00:45:45] to go ahead and have Copilot fix that [00:45:48] for us. [00:45:50] So I'm using the GitHub Copilot app to [00:45:53] do this today. I have asked it to use [00:45:57] Copilot Fusion, [00:45:58] which helps you to not have to think [00:46:01] about which model is the right model for [00:46:04] this experience. [00:46:06] And it's chose GPT-6 Luna because this [00:46:08] is a medium complexity type of problem [00:46:11] to fix. [00:46:13] And now it's getting started and working [00:46:15] on it, and you can see right away that [00:46:17] it has selected the C# expert skill in [00:46:21] order to try to make that experience a [00:46:23] little bit easier for it. It's also [00:46:25] using LSP to search for code [00:46:28] to speed up that code search process in [00:46:31] doing its work. [00:46:33] So while that's working, I'm going to [00:46:34] jump over to [00:46:37] GitHub to talk to you about what we've [00:46:39] been doing over the last year or so [00:46:42] with .NET skills. In [00:46:44] github.com/dotnet/skills, [00:46:47] we have created curated a whole list of [00:46:51] skills that make the experience for [00:46:53] working with .NET so much easier for [00:46:55] you. So whether your [00:46:57] is doing entity framework or Blazer or [00:47:01] Maui, we have the skills here that help [00:47:04] make that experience that much smarter [00:47:06] and that much better for you. [00:47:08] But we don't want you to take our word [00:47:10] for it. We spend time and put together [00:47:14] this skills evaluation dashboard so you [00:47:17] can bring this up from the link in in [00:47:19] the readme [00:47:21] um to show that we run these skills [00:47:23] against common scenarios on a regular [00:47:26] basis and [00:47:28] we calculate for you the time savings, [00:47:30] the token savings, and the reliability [00:47:33] improvements for those scenarios when [00:47:35] you use these skills across different [00:47:37] models. And we uh are looking at the top [00:47:40] models being used by you all out there [00:47:43] um so that you can see if your favorite [00:47:45] model is there um how what improvements [00:47:48] you would get from using this skill. [00:47:51] So awesome stuff. Now [00:47:54] in the .NET plugin specifically um this [00:47:57] provides some high level help with doing [00:48:01] general .NET development. That C# expert [00:48:04] skill is available in here. [00:48:05] This also has the configuration for [00:48:08] setting up to use Roslyn as a tool by [00:48:10] your agents. [00:48:12] The our team has done a amazing job of [00:48:14] working on updating Roslyn to make it [00:48:17] work better in agentic experiences. And [00:48:21] net with the version that's out now of [00:48:23] Roslyn, you can see up to 50% reduction [00:48:25] in memory usage when you're using [00:48:27] multiple agents at once. And so lots of [00:48:30] amazing improvements there for you to [00:48:32] get going using agents to develop your [00:48:35] .NET 11 code. [00:48:37] So let's go back and see how we're doing [00:48:38] here. [00:48:40] Looks like it's uh [00:48:43] still working a little bit but but uh [00:48:47] doing some evaluations. I have a version [00:48:50] of this so you don't have to watch this [00:48:51] finish um that is [00:48:55] uh [00:48:55] done the work and already. And so I'm [00:48:58] going to just go ahead and see that it [00:49:00] fixed the problem by running that uh [00:49:06] one more time. And we can see that one [00:49:09] was confirmed and the other is told it [00:49:11] was full. [00:49:13] Now we have a lot more coming with .NET [00:49:16] Conf, specifically talking about agentic [00:49:18] development. Um our uh there's a session [00:49:21] later today and another one tomorrow [00:49:24] talking specifically about how to get [00:49:26] the most out of the tools that we have [00:49:28] to offer. And to talk more about even [00:49:30] more of our great tools, here's Drew. [00:49:33] >> Uh my name is Drew Nokes. Um now I'm a [00:49:35] software engineer and I work on .NET [00:49:37] developer tooling. But both of those [00:49:39] things have changed quite a bit [00:49:41] recently. [00:49:42] For a long time, our tools were designed [00:49:44] and built around one person and one IDE [00:49:47] working for most of the day. You'd open [00:49:49] your repo there and and work for a long [00:49:51] stretch of time. [00:49:53] And in that scenario, putting all of the [00:49:55] machine's resources behind that [00:49:56] experience makes a lot of sense. [00:49:59] But now your machine has company. You [00:50:01] might be working in an IDE on reviewing [00:50:03] a change while an agent is making an uh [00:50:06] an edit of some sort. And in the [00:50:08] background, you may have more agents [00:50:09] doing, you know, writing code, running [00:50:11] builds, and and running tests. A lot of [00:50:14] things happening all at once, all uh [00:50:17] sharing that machine. [00:50:21] So our tools can't act like they own the [00:50:24] whole machine anymore. [00:50:26] The fewer resources each one needs, the [00:50:28] more room there is for you and your [00:50:30] agents to work side by side. [00:50:32] And that's a big part of why we've [00:50:34] completely rearchitected C# Dev Kit for [00:50:36] performance in version 11. [00:50:39] And the results are pretty amazing. Um [00:50:42] around three of our uh test solutions, [00:50:44] quite large solutions, um we found 77% [00:50:47] lower workspace loading times, um which [00:50:50] I'm excited about. Uh as well as 80% [00:50:53] less server process memory. For example, [00:50:56] you know, I think loading the Roslyn [00:50:57] repo, we had over 2 gig of RAM and it's [00:50:59] now around 300 meg. Um so big savings [00:51:02] there. And and building the Aspire uh [00:51:04] solution, which is 407 projects, we saw [00:51:08] an incremental build time. So you make [00:51:09] just one change and build just that [00:51:11] change across the whole solution, [00:51:12] dropping from 36 seconds down to just [00:51:15] two. [00:51:17] So these huge improvements create the [00:51:18] space you need to smoothly run multiple [00:51:20] sessions all on the same machine. [00:51:23] And because those sessions are on the [00:51:25] same machine, they can share completed [00:51:27] work between one another to more [00:51:29] efficiently uh complete the tasks that [00:51:32] they need to collaboratively. [00:51:36] Now when an agent builds your code, and [00:51:37] agents build code all the time, that [00:51:39] warms the environment for other um tools [00:51:42] that you might need to run. So launching [00:51:44] another IDE, running further tests, um [00:51:46] the build is really the thing that's [00:51:48] going to be uh warming that environment [00:51:50] for you. [00:51:51] And that's key part of this next [00:51:52] generation development loop that we are [00:51:55] working on. Rather than having cold [00:51:57] starts for many of these tool [00:51:58] invocations, um the tool should be able [00:52:01] to build on work that's already done and [00:52:03] reuse what they can to complete faster. [00:52:06] Now these improvements are starting in C [00:52:08] Sharp Dev Kit 11, which is available in [00:52:10] the pre-release channel today, uh and a [00:52:12] stable release is coming really soon. [00:52:14] Um, we are exploring taking the ideas [00:52:17] and techniques that we've developed [00:52:18] there, pushing them down in the stack [00:52:20] and making them available in more [00:52:21] scenarios. So across .NET tooling, um [00:52:24] and making potentially a an agent [00:52:26] agent-oriented mode where we can [00:52:29] optimize some of these tools when we [00:52:30] detect that they're being called by [00:52:32] agents, um to make the most common [00:52:34] operations uh work faster, as well as [00:52:37] the work tree initialization. [00:52:41] We'll go into a lot more detail on the [00:52:43] architectural changes and what we're um [00:52:45] hoping and exploring to do and coming [00:52:47] next in our session a little bit later [00:52:49] today. [00:52:50] But uh until then, I'll hand over to [00:52:52] Kathy. [00:52:54] >> Hey, thanks Drew. [00:52:56] All right. Uh I'm Kathy Sullivan. I'm [00:52:58] the product team at .NET. Uh [00:53:00] wow, what a great set of things that we [00:53:03] saw today. Uh we're really excited. [00:53:05] We've got four or three more days after [00:53:08] today. We've got over 60 sessions for [00:53:10] you. And so today was really just a peek [00:53:13] at uh actually this morning sorry is [00:53:15] just a peek at what we've got lined up [00:53:17] for you. Uh, this is day one. Uh, well [00:53:20] you'll see more from the team that's [00:53:21] built.net today. Uh, and then tomorrow [00:53:24] we'll go through Visual Studio. We've [00:53:25] got Windows. Uh, we've got Azure and [00:53:28] data as well too. Uh, and Maddie can you [00:53:30] tell us about day three and day four? [00:53:32] >> Yes. Hi everybody. I'm Maddie [00:53:33] Montequella. I am the PM for Aspire. And [00:53:35] days three and four are all about our [00:53:37] community. All of you. You have all done [00:53:40] an amazing job contributing to .NET 11. [00:53:44] Uh, we cannot thank you enough. This is [00:53:45] my favorite slide every year. There's [00:53:47] always familiar faces and new faces. We [00:53:50] have been sitting backstage watching the [00:53:51] chat and just like the excitement around [00:53:53] this release and and all of the stuff [00:53:54] we've shown already I'm really happy [00:53:56] about. So days one and two all about the [00:53:59] team presenting on the latest and [00:54:00] greatest and days three and four we have [00:54:03] a team of community folks running those [00:54:04] days actually with us. Um, and it's all [00:54:07] about you showing us how you use .NET in [00:54:09] the wild. [00:54:11] >> Yeah, and also some of the products that [00:54:13] you uh uh sorry that Microsoft's [00:54:15] building are also built on .NET. So if [00:54:18] you're getting a uh Teams message on [00:54:20] your phone that's backed by a .NET [00:54:22] service. Uh, and also you saw earlier [00:54:24] how um if you're connecting to a cloud [00:54:26] PC uh on Windows that's also backed by a [00:54:29] .NET service also running Aspire on the [00:54:32] back end as well. [00:54:34] >> Yep. As as many of you have been talking [00:54:36] in the chat during this whole keynote we [00:54:38] know the world runs on .NET from [00:54:40] hospitals to schools to banks to [00:54:43] airplanes. You find .NET everywhere. Uh, [00:54:46] and not just in these big companies too [00:54:47] but in in small startups all over the [00:54:49] world we're seeing .NET continue to be [00:54:52] adopted and grow year over year uh as we [00:54:55] keep making each release even better. [00:54:59] >> And thank you to all these companies and [00:55:00] organizations who have also contributed [00:55:02] to .NET in the ecosystem uh from [00:55:05] hardware to UI frameworks uh operating [00:55:07] systems and developer tools. [00:55:10] And we also want to say thank you to the [00:55:11] .NET security group and your great work [00:55:14] and helping us keep .NET secure. [00:55:17] >> It has been a crazy year and I think [00:55:20] things will continue to get razier, but [00:55:22] as Damian said in the beginning, we have [00:55:25] been around through 25 years almost of [00:55:28] crazy industry changes and shifts. And [00:55:30] as you hopefully saw in this keynote, we [00:55:32] have an incredibly talent dense team [00:55:35] working on all of the underlying things [00:55:38] you want to see in a secure, safe [00:55:40] platform to build your apps on. And [00:55:42] we're keeping up with the trends. So, [00:55:44] you know, hang out with us. We're going [00:55:46] to be on this journey with you and [00:55:48] you're going to see over the next 4 days [00:55:50] some really, really incredible work by [00:55:52] some brilliant people [00:55:54] all about .NET. So, [00:55:56] get.dot.net. [00:55:58] I said the site correctly. Get.dot.net. [00:56:02] Soon it will be in winget.net up all the [00:56:03] other places you can install it as well. [00:56:06] We are so happy to have you here at .NET [00:56:08] Conf this year and we can't wait to see [00:56:10] what you build.