.NET Standard 2.0 Cookbook


Book Description

Get the most out of .NET framework using standard libraries and create a .NET Standard 2.0 library from scratch Key Features Write code once and share within .NET ecosystem in Windows, Linux and macOS Give your .NET Libraries a common framework in cloud and on premise with the latest .NET Standard 2.0 Build a wide range of applications from Mobile with Xamarin to Web with ASP.NET Book Description The .NET Standard is a standard that represents a set of APIs that all .NET platforms have to implement, making it easy for developers to access and use one common library for their development needs. This book begins with a quick refresher, helping you understand the mechanics of the new standard and offering insight into how it works. You’ll explore the core library concepts, such as working with collections, configurations, I/O, security, and multithreading. You’ll explore the iOS and Android libraries of Xamarin and we’ll guide you through creating a .NET Standard 2.0 library, which you’ll use with both Android and iOS applications. In the final chapters, you’ll learn the various debugging and diagnostics tools to deliver quality libraries and create a NuGet package of the .NET Standard 2.0 library. By the end of this book, you’ll be able to expand your current workflow to various .NET flavors and have the essential skills to create a .NET Standard 2.0 library from scratch to package and deliver it to the world. What you will learn Create a .NET Standard 2.0 library Use System.IO within the .NET Standard 2.0 Make use of your legacy .NET libraries with the new .NET Core standard Explore the thread support to create a multithreaded .NET Standard 2.0 library Create a .NET Standard 2.0 library and use it with an Android and iOS application Implement various Visual Studio 2017 diagnostics and debugging tools Create a NuGet Package and submit the package to the NuGet Package Manager Use Visual Studio 2017 azure tools to deploy the application to Azure Test and deliver a .NET Standard 2.0 library Who this book is for This book is for .NET developers who are looking to build dynamic applications with the latest .NET Standard. C# knowledge is required.




C# 7 and .NET Core: Modern Cross-Platform Development


Book Description

Modern Cross-Platform Development About This Book Build modern, cross-platform applications with .NET Core Get up to speed with C#, and up to date with all the latest features of C# 7 Start creating professional web applications with ASP.NET Core Who This Book Is For This book is targeted towards readers who have some prior programming experience or have a science, technology, engineering, or mathematics (STEM) background, and want to gain a solid foundation with C# and to be introduced to the types of applications they could build and will work cross-platform on Windows, Linux, and macOS. What You Will Learn Build cross-platform applications using C# 7 and .NET Core Explore ASP.NET Core and learn how to create professional web applications Improve your application's performance using multitasking Use Entity Framework Core and find out how to build code-first databases Master object-oriented programming with C# to increase code reuse and efficiency Familiarize yourself with cross-device app development using the Universal Windows Platform and XAML Query and manipulate data using LINQ Protect your data by using encryption and hashing In Detail If you want to build powerful cross-platform applications with C# 7 and .NET Core, then this book is for you. First, we'll run you through the basics of C#, as well as object-oriented programming, before taking a quick tour through the latest features of C# 7 such as tuples, pattern matching, out variables, and so on. After quickly taking you through C# and how .NET works, we'll dive into the .NET Standard 1.6 class libraries, covering topics such as performance, monitoring, debugging, serialization and encryption. The final section will demonstrate the major types of application that you can build and deploy cross-device and cross-platform. In this section, we'll cover Universal Windows Platform (UWP) apps, web applications, mobile apps, and web services. Lastly, we'll look at how you can package and deploy your applications so that they can be hosted on all of today's most popular platforms, including Linux and Docker. By the end of the book, you'll be armed with all the knowledge you need to build modern, cross-platform applications using C# and .NET Core. Style and approach This book takes a step-by-step approach and is filled with exciting projects and fascinating theory. It uses three high-impact sections to equip you with all the tools you'll need to build modern, cross-platform applications using C# and .NET Core.




Blazor in Action


Book Description

An example-driven guide to building reusable UI components and web frontends—all with Blazor, C#, and .NET. In Blazor in Action, you will learn about: Blazor + WebAssembly Picking the right hosting model Building reusable UI components Building forms with validation Integrating with JavaScript libraries Securing your application Testing your applications Blazor in Action is a practical guide to building stunning UIs and client-side applications using C# and .NET. You’ll use the Blazor frontend framework to create a fun and exciting web application for plotting hiking routes. As you build up your new application, you’ll master the key features of Blazor, such as routing, forms and validation, and dynamic and reusable components. By the time you're done, you'll be ready to develop beautiful sites and apps that seamlessly execute your C# code natively in the browser. The book is written to the most recent stable build of Blazor and seamlessly integrates fresh features from .NET 6. About the technology Create rich web frontends without relying on JavaScript. Microsoft’s Blazor framework uses WebAssembly to extend the ultra-popular ASP.NET platform. In Blazor, you can build interactive web components that run natively in the browser without plug-ins or transpilers. And because it’s C# end-to-end, it’s easy to share code between the server and your web UI. About the book Blazor in Action teaches you to create full-stack ASP.NET applications end-to-end in C#. You’ll start by learning to build Blazor web components, working through core topics like routing and forms. As you go, you’ll implement a hiking route web application that includes reusable code, integration with JavaScript libraries, and role-based security. To make sure your app is production ready, this practical book also covers state management, data persistence, and testing. What's inside Dynamic and reusable UI components Sharing client and server code Role-based security using Auth0 Persisting state using local browser storage About the reader For web developers with C# and .NET experience. About the author Chris Sainty has been a part of the Blazor community from the beginning. He’s an active blogger, open source developer, international speaker, and a Microsoft MVP. Table of Contents 1 Starting your Blazor journey 2 Your first Blazor app 3 Working with Blazor’s component model 4 Routing 5 Forms and validation—Part 1: Fundamentals 6 Forms and validation—Part 2: Beyond the basics 7 Creating more reusable components 8 Integrating with JavaScript libraries 9 Securing Blazor applications 10 Managing state 11 Testing your Blazor application




C# 6.0 Cookbook


Book Description

Completely updated for C# 6.0, the new edition of this bestseller offers more than 150 code recipes to common and not-so-common problems that C# programmers face every day. More than a third of the recipes have been rewritten to take advantage of new C# 6.0 features. If you prefer solutions to general C# language instruction and quick answers to theory, this is your book.C# 6.0 Cookbook offers new recipes for asynchronous methods, dynamic objects, enhanced error handling, the Rosyln compiler, and more. Here are some of topics covered: Classes and generics Collections, enumerators, and iterators Data types LINQ and Lambda expressions Exception handling Reflection and dynamic programming Regular expressions Filesystem interactions Networking and the Web XML usage Threading, Synchronization, and Concurrency Each recipe in the book includes tested code that you can download from oreilly.com and reuse in your own applications, and each one includes a detailed discussion of how and why the underlying technology works. You don't have to be an experienced C# or .NET developer to use C# 6.0 Cookbook. You just have to be someone who wants to solve a problem now, without having to learn all the related theory first.




C# and .NET Core Test-Driven Development


Book Description

Learn how to apply a test-driven development process by building ready C# 7 and .NET Core applications. Key Features Create tests to quickly detect and resolve issues when writing portable code Uncover code integration issues that improve code quality using continuous integration Set up and use data-driven unit testing to verify your code Book Description This book guides developers to create robust, production-ready C# 7 and .NET Core applications through the practice of test-driven development process. In C# and .NET Core Test-Driven Development, you will learn the different stages of the TDD life cycle, basics of TDD, best practices, and anti-patterns. It will teach you how to create an ASP.NET Core MVC sample application, write testable code with SOLID principles and set up a dependency injection for your sample application. Next, you will learn the xUnit testing framework and learn how to use its attributes and assertions. You’ll see how to create data-driven unit tests and mock dependencies in your code. You will understand the difference between running and debugging your tests on .NET Core on LINUX versus Windows and Visual Studio. As you move forward, you will be able to create a healthy continuous integration process for your sample application using GitHub, TeamCity, Cake, and Microsoft VSTS. By the end of this book, you will have learned how to write clean and robust code through the effective practice of TDD, set up CI build steps to test and build applications as well as how to package application for deployment on NuGet. What you will learn Write flexible, maintainable, and verifiable code for .NET Core Write testable code using SOLID principles and dependency injections Recognize the characteristics of a good unit test Structure and group your unit test Use mock objects to handle dependencies Set up an end-to-end continuous integration process Who this book is for This book is for .NET developers who would like to build efficient applications by implementing principles of test-driven development. C# programming and working knowledge of VS is assumed.




PowerShell Cookbook


Book Description

How do you use PowerShell to navigate the filesystem, manage files and folders, or retrieve a web page? This introduction to the PowerShell language and scripting environment provides more than 400 task-oriented recipes to help you solve all kinds of problems. Intermediate to advanced system administrators will find more than 100 tried-and-tested scripts they can copy and use immediately. Updated for PowerShell 5.1 and Open Source PowerShell up to 7.0 and beyond, this comprehensive cookbook includes hands-on recipes for common tasks and administrative jobs that you can apply whether you're on the client or server version of Windows. You also get quick references to technologies used in conjunction with PowerShell, including regular expressions, the XPath language, format specifiers, and frequently referenced .NET, COM, and WMI classes. Learn how to use PowerShell on Windows 10 and Windows Server 2019 Tour PowerShell's core features, including the command model, object-based pipeline, and ubiquitous scripting Master fundamentals such as the interactive shell, pipeline, and object concepts Perform common tasks that involve working with files, internet-connected scripts, user interaction, and more Solve tasks in systems and enterprise management, such as working with Active Directory and the filesystem




ASP.NET 2.0 Cookbook


Book Description

Completely revised for ASP.NET 2.0, this new edition of the best-selling ASP.NET Cookbook has everything you need to go from beginning to advanced Windows-based web site development using Microsoft's popular Visual Studio 2005 and ASP.NET 2.0 developer tools. Written for the impatient professional, ASP.NET 2.0 Cookbook contains more than 125 recipes for solving common and not-so-common problems you are likely to encounter when building ASP.NET-based web applications. The recipes in this book, which run the gamut from simple coding techniques to more comprehensive development strategies, are presented in the popular Problem-Solution-Discussion format of the O'Reilly Cookbook series. As with the first edition, every solution is coded in both C# and Visual Basic 2005. Among the additions and revisions to this new edition are: Three new chapters, including 25 new recipes for Master and Content pages, Personalization using Profiles and Themes, Custom Web Parts, and more New code for every solution, rewritten to take advantage of features and techniques new to ASP.NET 2.0 and available for download The ASP.NET 2.0 Cookbook continues to provide the most comprehensive coverage you'll find anywhere of: Tabular controls, including the new GridView control Data validation, including the new ASP.NET 2.0 validation controls, as well as techniques for performing your own validation programmatically User and custom controls Error handling, performance tuning, and caching Whether you're new to ASP.NET or an experienced Microsoft developer, with ASP.NET 2.0 Cookbook, deliverance from a long day (or night) at your computer could be just one recipe away.




.NET 2.0 Interoperability Recipes


Book Description

It is difficult to just throw out all existing code and start over when a new technology arrives. That’s the situation with Microsoft .NET, which represents a new and improved way of developing software for the Windows platform. Wouldn’t you would love to rewrite all of your existing code in the newer managed code environment that .NET provides? However, you have that little problem known as legacy code. Fortunately, Microsoft .NET provides a rich set of tools interoperation with existing code. This book is written as a guide for Windows developers transitioning from native Windows code to .NET managed code.




Powershell Core 6.2 Cookbook


Book Description

Make use of hands-on recipes for many tasks that are typically encountered in both the on-premises as well as the cloud world. Key FeaturesA recipe-based guide to help you build effective administrative solutionsGain hands-on experience with the newly added features of PowerShell CoreManage critical business environments with professional scripting practicesBook Description This book will follow a recipe-based approach and start off with an introduction to the fundamentals of PowerShell, and explaining how to install and run it through simple examples. Next, you will learn how to use PowerShell to access and manipulate data and how to work with different streams as well. You will also explore the object model which will help with regard to PowerShell function deployment. Going forward, you will get familiar with the pipeline in its different use cases. The next set of chapters will deal with the different ways of accessing data in PowerShell. You will also learn to automate various tasks in Windows and Linux using PowerShell Core, as well as explore Windows Server. Later, you will be introduced to Remoting in PowerShell Core and Just Enough Administration concept. The last set of chapters will help you understand the management of a private and public cloud with PowerShell Core. You will also learn how to access web services and explore the high-performance scripting methods. By the end of this book, you will gain the skills to manage complex tasks effectively along with increasing the performance of your environment. What you will learnLeverage cross-platform interaction with systemsMake use of the PowerShell recipes for frequent tasksGet a better understanding of the inner workings of PowerShellUnderstand the compatibility of built-in Windows modules with PowerShell CoreLearn best practices associated with PowerShell scriptingAvoid common pitfalls and mistakesWho this book is for This book will be for windows administrators who want to enhance their PowerShell scripting skills to the next level. System administrators wanting to automate common to complex tasks with PowerShell scripts would benefit from this book. Prior understanding on PowerShell would be necessary.




ASP.NET Core MVC 2.0 Cookbook


Book Description

Learn to implement ASP.NET Core features to build effective software that can be scaled and maintained easily Key Features Practical solutions to recurring issues in the web development world Recipes on the latest features of ASP.Net Core 2.0 Coverage of Bootstrap, Angular, and JavaScript lets you supercharge your frontend Book Description The ASP.NET Core 2.0 Framework has been designed to meet all the needs of today’s web developers. It provides better control, support for test-driven development, and cleaner code. Moreover, it’s lightweight and allows you to run apps on Windows, OSX and Linux, making it the most popular web framework with modern day developers. This book takes a unique approach to web development, using real-world examples to guide you through problems with ASP.NET Core 2.0 web applications. It covers Visual Studio 2017- and ASP.NET Core 2.0-specifc changes and provides general MVC development recipes. It explores setting up .NET Core, Visual Studio 2017, Node.js modules, and NuGet. Next, it shows you how to work with Inversion of Control data pattern and caching. We explore everyday ASP.NET Core MVC 2.0 patterns and go beyond it into troubleshooting. Finally, we lead you through migrating, hosting, and deploying your code. By the end of the book, you’ll not only have explored every aspect of ASP.NET Core MVC 2.0, you’ll also have a reference you can keep coming back to whenever you need to get the job done. What you will learn Build ASP.Net Core 2.0 applications using HTTP services with WebApi Learn to unit-test, load test, and perform test applications using client-side and server-side frameworks Debug, monitor and troubleshoot ASP.Net Core 2.0 applications using popular tools Reuse components with NuGet and create modular components with middleware Create applications using client-side technologies such as HTML5, JavaScript, jQuery, and Angular Build responsive and dynamic UIs for your MVC apps using Bootstrap Leverage tools like Karma, Jasmine, QUnit, xUnit, Selenium, Microsoft Fakes, and Visual Studio 2017 Enterprise Who this book is for This book is written for the ASP.NET developer who wants to deliver professional-standard software, quickly and efficiently. It's filled with hands-on recipes, practical advice, and guidance to help developers with every aspect of the ASP.NET development cycle. Whether you've just started out or are a seasoned pro, the Asp.Net Core 2.0 Cookbook is written for you.