Platforma .NET - 1 RNDr. Michal Pobucký michal.pobucky@fpf.slu.cz Ústav informatiky – zima 2020 Podmínky absolvování předmětu • Vytvoření webové aplikace, která bude zahrnovat všechny probrané prvky z osnovy předmětu • Lze použít C#, F# anebo VisualBasic 2Platforma .NET - 1 - RNDr. Michal Pobucký What is .NET? • .NET is an open source developer platform, created by Microsoft, for building many different types of applications. • .NET is a free, cross-platform, open source developer platform for building many different types of applications. • With .NET, you can use multiple languages, editors, and libraries to build for web, mobile, desktop, games, and IoT. 3Platforma .NET - 1 - RNDr. Michal Pobucký Languages • You can write .NET apps in C#, F#, or Visual Basic. • C# is a simple, modern, object-oriented, and type-safe programming language. • F# is a cross-platform, open-source, functional programming language for .NET. It also includes object-oriented and imperative programming. • Visual Basic is an approachable language with a simple syntax for building type-safe, object-oriented apps. 4Platforma .NET - 1 - RNDr. Michal Pobucký Languages • C# • C# (pronounced "C sharp") is a simple, modern, object-oriented, and type-safe programming language. • Its roots in the C family of languages makes C# immediately familiar to C, C++, Java, and JavaScript programmers. • https://docs.microsoft.com/cs- cz/dotnet/csharp/ Platforma .NET - 1 - RNDr. Michal Pobucký 5 Languages • F# • F# (pronounced "F sharp") is a cross-platform, open-source, functional programming language for .NET. It also includes objectoriented and imperative programming. • https://dotnet.microsoft.com/lang uages/fsharp Platforma .NET - 1 - RNDr. Michal Pobucký 6 Languages • Visual Basic • Visual Basic is an approachable language with a simple syntax for building type-safe, object-oriented apps. • https://docs.microsoft.com/dotne t/visual-basic/ Platforma .NET - 1 - RNDr. Michal Pobucký 7 Cross Platform • Whether you're working in C#, F#, or Visual Basic, your code will run natively on any compatible OS. Different .NET implementations handle the heavy lifting for you: • .NET Core is a cross-platform .NET implementation for websites, servers, and console apps on Windows, Linux, and macOS. • .NET Framework supports websites, services, desktop apps, and more on Windows. • Xamarin/Mono is a .NET implementation for running apps on all the major mobile operating systems. 8Platforma .NET - 1 - RNDr. Michal Pobucký Libraries • To extend functionality, Microsoft and others maintain a healthy package ecosystem built on .NET Standard. • NuGet is a package manager built specifically for .NET that contains over 90,000 packages. 9Platforma .NET - 1 - RNDr. Michal Pobucký What is ASP.NET? • ASP.NET is an open source web framework, created by Microsoft, for building modern web apps and services with .NET. • ASP.NET is cross platform and runs on Windows, Linux, macOS, and Docker. 10Platforma .NET - 1 - RNDr. Michal Pobucký ASP.NET extends .NET • ASP.NET extends the .NET platform with tools and libraries specifically for building web apps. • These are some things that ASP.NET adds to the .NET platform: • Base framework for processing web requests in C# or F# • Web-page templating syntax, known as Razor, for building dynamic web pages using C# • Libraries for common web patterns, such as Model View Controller (MVC) • Authentication system that includes libraries, a database, and template pages for handling logins, including multi-factor authentication and external authentication with Google, Twitter, and more. • Editor extensions to provide syntax highlighting, code completion, and other functionality specifically for developing web pages 11Platforma .NET - 1 - RNDr. Michal Pobucký Back-end code • When using ASP.NET your back-end code, such as business logic and data access, is written using C#, F#, or Visual Basic. • Because ASP.NET extends .NET, you can use the large ecosystem of packages and libraries available to all .NET developers. You can also author your own libraries that are shared between any applications written on the .NET platform. 12Platforma .NET - 1 - RNDr. Michal Pobucký Dynamic pages using C#, HTML, CSS and JavaScript • Razor provides a syntax for creating dynamic web pages using HTML and C#. Your C# code is evaluated on the server and the resulting HTML content is sent to the user. • Code that executes client-side is written in JavaScript. ASP.NET integrates with JavaScript frameworks and includes preconfigured templates for single page app (SPA) frameworks like React and Angular. Platforma .NET - 1 - RNDr. Michal Pobucký 13 What is ASP.NET Core? • If you use ASP.NET, you'll soon come across the term ASP.NET Core. • ASP.NET Core is the open-source and cross-platform version of ASP.NET. You should use ASP.NET Core for all new applications. • The Windows-only versions of ASP.NET, that existed before ASP.NET Core, is typically just referred to as ASP.NET. The majority of innovation occurs in ASP.NET Core, but other versions continue to receive minor updates and bug-fixes. Platforma .NET - 1 - RNDr. Michal Pobucký 14 Visual Studio 2019 15Platforma .NET - 1 - RNDr. Michal Pobucký https://visualstudio.microsoft.com/cs/ Visual Studio 2019 • Tři verze • Community 2019 – zdarma pro individuální vývojáře, akademické využití a open source • Professional 2019 – placená, pro individuální využití, lze bezplatná zkušební verze • Enterprise 2019 – placená, pro organizace, lze bezplatná zkušební verze Platforma .NET - 1 - RNDr. Michal Pobucký 16 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 17 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 18 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 19 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 20 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 21 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 22 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 23 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 24 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 25 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 26 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 27 Visual Studio 2019 Platforma .NET - 1 - RNDr. Michal Pobucký 28 Zdroje • https://docs.microsoft.com/cs-cz/dotnet/standard/ • https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet • https://dotnet.microsoft.com/learn/aspnet/what-is-aspnet • https://dotnet.microsoft.com/languages 29Platforma .NET - 1 - RNDr. Michal Pobucký