Introducing .NET 6


Book Description

Welcome to .NET 6, Microsoft’s unified framework that converges the best of the modern and traditional .NET Framework. This book will introduce you to the new aspects of Microsoft’s fully supported .NET 6 Framework and will teach you how to get the most out of it. You will learn about the progress to one unified .NET, including MAUI and the revival of desktop development. You will dive into Roslyn, Blazor, CLI, Containers, Cloud, and much more, using a “framework first” learning approach. You will begin by learning what each tool is, its practical uses, and how to apply it and then you will try it out on your own for learning reinforcement. And, of course, there will be plenty of code samples using C# 10. Introducing .NET 6 is aimed at .NET developers, both junior developers and those coming from the .NET framework, who want to understand everything the modern framework has to offer, besides the obvious programming languages. While you will still see a lot of fabulous C# 10 throughout the book, the focus of this learning is all about .NET and its tooling. What You Will Learn Become a more versatile developer by knowing the variety of options available to you in the .NET 6 framework and its powerful tooling Know the different front-end frameworks .NET offers, such as UWP, WPF, and WinForms, and how they stack up to each other Understand the different communication protocols, such as REST and gRPC, for your back-end services Discover the secrets of cloud-native development, such as serverless computing with Azure Functions and deploying containers to Azure Container Services Master the command line, take your skill set to the cloud, and containerize your .NET 6 app Who This Book Is For Both students and more experienced developers, C# developers who want to learn more about the framework they use, developers who want to be more productive by diving deeper into the tooling that .NET 6 brings to the fold, developers who need to make technical decisions. A working knowledge of C# is recommended to follow the examples used in the book.




Introducing .NET


Book Description

.NET is Microsoft's vision of "software as a service", a development environment in which you can build, create, and deploy your applications, and develop the next generation of components, termed Web Services. All of Microsoft's major flagship products from Visual Studio to Windows, and eventually Office are gradually being integrated into the vision, and they will all offer services that will allow greater integration between products. .NET will allow developers to develop in whatever language they are comfortable with, via the introduction of a common language runtime, whilst at the same time provide "building block services" to ease application development. Introducing .NET is designed to tell you exactly what you need to know, to cut through the fog and to bring you a clear picture of what .NET is, and what you can expect to be able to do using it. Who is this Book For? This book is for experienced developers at the leading edge, or for businesses that want to stay one step ahead of the competition. The different sections of .NET are in varying stages of completion, and all are in beta programs, therefore a high degree of technical competence and awareness of technologies such as COM, COM+, ASP and VB is required on the part of the reader. Some experience of C, C+ +, or Java would be advantageous to anyone new to C#, although it's not essential. What Does this Book Cover? • Examines the .NET Framework in detail • Explains what is and isn't part of .NET • Examines how the different parts fit together • Covers VB.NET and C# as two languages for .NET development • Provides examples of .NET in action




Introducing .NET 4.0


Book Description

Microsoft has introduced a large number of changes to the way that the .NET Framework operates. Familiar technologies have being altered, best practices replaced, and developer methodologies adjusted. Many developers find it hard to keep up with the pace of change across .NET's ever-widening array of technologies. You may know what's happening in C#, but how about the Azure cloud? How is that going to affect your work? What are the limitations of the pLINQ syntax? What you need is a roadmap. A guide to help you see the innovations that matter and to give you a head start on the opportunities available in the new framework. Introducing .NET 4.0: with Visual Studio 2010 is designed to provide you with just that roadmap. It serves as a no-nonsense primer that will help experienced .NET developers understand the impact of the new framework and its associated technologies. This book will keep you updated on the changes and help you to seize new opportunities confidently and quickly.




C# 9.0 in a Nutshell


Book Description

When you have questions about C# 9.0 or .NET 5, this best-selling guide has the answers you need. C# is a language of unusual flexibility and breadth, but with its continual growth there's so much more to learn. In the tradition of O'Reilly's Nutshell guides, this thoroughly updated edition is simply the best one-volume reference to the C# language available today. Organized around concepts and use cases, C# 9.0 in a Nutshell provides intermediate and advanced programmers with a concise map of C# and .NET that also plumbs significant depths. Get up to speed on C#, from syntax and variables to advanced topics such as pointers, records, closures, and patterns Dig deep into LINQ with three chapters dedicated to the topic Explore concurrency and asynchrony, advanced threading, and parallel programming Work with .NET features, including regular expressions, networking, spans, reflection, and cryptography




Pro C# 8 with .NET Core 3


Book Description

This essential classic provides a comprehensive foundation in the C# programming language and the frameworks it lives in. Now in its 9th edition, you will find the latest C# 8 and .NET Core features, along with new chapters on Microsoft’s lightweight, cross-platform framework, .NET Core 3.1. Coverage of ASP.NET Core, Entity Framework Core, and more, sits alongside the latest updates to .NET Core, including Windows Presentation Foundation (WPF). Not only does this book cover all of the latest features in C# 8, but all chapters and code samples have been rewritten for this latest release. Dive in and discover why this book has been a favorite of C# developers worldwide for more than 15 years. Gain a solid foundation in object-oriented development techniques, attributes and reflection, generics and collections, and numerous advanced topics not found in other texts (such as CIL opcodes and emitting dynamic assemblies). With the help of Pro C# 8 with .NET Core 3 gain the confidence to put C# into practice and explore the .NET Core universe on your own terms. What You Will LearnDiscover the bells and whistles of C# 8 features and updates to previous features Hit the ground running with ASP.NET Core web applications and web services, and Entity Framework Core Work with the latest version of Windows Presentation Foundation, now a part of .NET Core Understand the philosophy behind .NET and the cross-platform alternative, .NET CoreDevelop applications with C# and modern frameworks for services, web, and smart client applications Who This Book Is For Developers who are interested in .NET programming and the C# language “Amazing! Provides easy-to-follow explanations and examples. I remember reading the first version of this book; this is a 'must-have' for your collection if you are learning .NET Core!” – Rick McGuire, Senior Application Development Manager, Microsoft “Phil is a journeyman programmer who brings years of experience and a passion for teaching to make this fully revised and modernized ‘classic’ a ‘must-have’. Any developer who wants full-spectrum, up-to-date coverage of both the C# language and how to use it with .NET Core and ASP.NET Core should get this book.” – Brian A. Randell, Partner, MCW Technologies and Microsoft MVP




Building Web Applications with .NET Core 2.1 and JavaScript


Book Description

Roll up your sleeves and jump into building web applications using .NET Core 2.1 and the most popular JavaScript frameworks. You will start by building a data access layer using Entity Framework Core, a RESTful service using ASP.NET Core, and then you will build a web application following the MVC pattern, also using ASP.NET Core. The resulting application is an example e-commerce site using the most appropriate capabilities in .NET Core for building a line of business applications. The second half of Building Web Applications with .NET Core 2.1 and JavaScript is dedicated to teaching you how to develop applications on the client with JavaScript, BootStrap, and related tooling such as TypeScript, WebPack, NPM, and more. Each JavaScript framework will build the same UI as the ASP.NET Core web application from the first half of the book, leveraging the same ASP.NET Core RESTful service and Entity Framework Core data access layer. Building the same UI in the different JavaScript frameworks provides the context and knowledge to reasonably compare and contrast the tools. What You Will Learn Ramp up quickly on Entity Framework Core and ASP.NET Core Use TypeScript to deliver better JavaScript Manage your JavaScript build process Know how to build UIs with ASP.NET Core MVC, Angular, and React to make better decisions on which technologies to adopt in your projectsConduct an apples-to-apples comparison of ASP.NET Core, Angular, and React Who This Book Is For .NET architects, consultants, and developers who want to modernize their skill set. Some understanding of JavaScript and the Web is useful.




C# 7.0 in a Nutshell


Book Description

When you have questions about C# 7.0 or the .NET CLR and its core Framework assemblies, this bestselling guide has the answers you need. Since its debut in 2000, C# has become a language of unusual flexibility and breadth, but its continual growth means there’s always more to learn. Organized around concepts and use cases, this updated edition provides intermediate and advanced programmers with a concise map of C# and .NET knowledge. Dive in and discover why this Nutshell guide is considered the definitive reference on C#. Get up to speed on the C# language, from the basics of syntax and variables to advanced topics such as pointers, operator overloading, and dynamic binding Dig deep into LINQ via three chapters dedicated to the topic Explore concurrency and asynchrony, advanced threading, and parallel programming Work with .NET features, including XML, regular expressions, networking, serialization, reflection, application domains, and security Delve into Roslyn, the modular C# 7.0 compiler-as-a-service




Microsoft Blazor


Book Description

Build web applications in C# and Microsoft .NET 6 that run in any modern browser and become a full-stack web developer!. Do all these things using the Microsoft Blazor framework and the techniques shown in this book. New in this edition is coverage of the new and improved Razor syntax, communication with the server using SignalR and/or gRPC, the use of virtualization to load large quantities of data efficiently, deployment and ahead-of-time compilation into WASM, new unit testing features, security using OpenID Connect, and more. Reading this book helps you learn to build user interfaces and present data to a user for display and modification, capturing the user’s changes via data binding. The book shows how to access a rich library of .NET functionality such as a component model for building a composable user interface, including how to develop reusable components that can be used across many pages and websites. Also covered is data exchange with a server using REST, SignalR, and gRPC, giving you access to microservices and database services. Blazor provides a fresh take on web development by eliminating the need for you to learn different languages and frameworks for client- and server-side development. Blazor allows C# and .NET to be used on all sides—both server-side and client-side—providing a robust feature set that is well suited toward scalable, enterprise-level applications. With Blazor you can use all your experience in .NET 6 along with thousands existing libraries, right in the browser. This book gets you proficient using this important toolkit for web application development. What You Will Learn Build user interfaces and display data for users to edit Capture user edits and changes via data binding Transfer data back and forth between server and client Communicate with microservices and database services using REST, SignalR, or gRPC Develop reusable components and assemble them into bigger components Use routing to build single-page applications (SPAs) Build stable and maintainable software using unit testing Internationalize your application to reach more users Secure your Blazor application with OpenID Connect Who This Book Is For Experienced .NET developers who want to apply their existing skills toward building professional-quality, client-side web applications that run in any browser and web developers who want to step away from JavaScript and its complexities, and instead use a proven technology (C# and .NET6) that is robust toward creating enterprise-quality applications that scale and are reliable, and provide a good user experience




Pro Microservices in .NET 6


Book Description

Know the fundamentals of creating and deploying microservices using .NET 6 and gain insight from prescriptive guidance in this book on the when and why to incorporate them. The microservices architecture is a way of distributing process workloads to independent applications. This distribution allows for the independent applications to scale and evolve separately. It also enables developers to dismantle large applications into smaller, easier-to-maintain, scalable parts. While the return is valuable and the concept straightforward, applying it to an application is far more complicated. Where do you start? How do you find the optimal dividing point for your app, and strategically, how should your app be parceled out into separate services? Pro Microservices in .NET 6 will introduce you to all that and more. The authors get you started with an overview of microservices, .NET 6, event storming, and domain-driven design. You will use that foundational information to build a reference application throughout the book. From there, you will create your first microservice using .NET 6 that you can deploy into Docker and Azure Kubernetes Service. You will also learn about communication styles, decentralizing data, and testing microservices. Finally, you will learn about logging, metrics, tracing, and use that information for debugging. What You Will Learn Build a foundation of basic microservices architecture design Follow an example of using event storming and domain-driven design to understand the monolithic application modified for microservices Understand, via detailed commands, how Docker is used to containerize applications Get an overview of creating microservices from a monolithic application Call microservices using RPC and messaging communication styles with MassTransit Comprehend decentralizing data and handling distributed transactions Use Azure Kubernetes Service to host and scale your microservices Know the methods to make your microservices more robust Discover testing techniques for RPC and messaging communication styles Apply the applications you build for actual use Practice cross-cutting concerns such as logging, metrics, and tracing Who This Book Is For Developers and software architects. Readers should have basic familiarity with Visual Studio and experience with .NET, ASP.NET Core, and C#.