Tag Archives: .net

Pages in ASP .NET Core: Razor, Blazor and MVC Views

By Shahed C on October 21, 2018

This is the third of a new series of posts on ASP .NET Core. This week, we’ll be looking at various types of Pages you may encounter in an ASP .NET Core web app:

  1. Razor Pages (new as of v2.0)
  2. the experimental Blazor (C# in the browser!)
  3. the more familiar MVC Views (aka Razor Views)

If you already know how to create each type of project, feel free to jump past section 3B below.

ASPNETCoreLogo-300x267

Before you begin

Before you begin, make sure you download an IDE or code editor to open and run the code samples. My recommendations are below:

A. Visual Studio Code: https://code.visualstudio.com

B. Visual Studio 2017 (v15.8 or later): https://visualstudio.microsoft.com/vs/

vs-logos

To get the latest SDK, download .NET Core v2.1 or higher:

Web .NET Core Download: https://www.microsoft.com/net/download

To use Blazor in Visual Studio 2017, you must install the ASP .NET Core Blazor Language Services extension from the Visual Studio Marketplace:

Web Blazor extension: https://marketplace.visualstudio.com/items?itemName=aspnet.blazor

The instructions below will cover both Command Line Interface (CLI) commands and IDE/editor steps to create, build and run the code samples.

Web Sample code: https://github.com/shahedc/PagesDemo

Continue reading

Azure Blob Storage from ASP .NET Core File Upload

By Shahed C on October 13, 2018

This is the second of a new series of posts on ASP .NET Core. In the past week, I had the opportunity to participate in a hackfest with several colleagues from across the globe, to work on real-life customer projects. I took a break from my primary project to help a colleague with a simple problem: upload a file from a web browser and save it into Azure Blob Storage within an ASP .NET Core web application!

ASPNETCoreLogo-300x267

Before you begin

Before you begin, make sure you sign in to Azure, create a storage account and make a note of the storage connection information.

Refer to:

“Show me the code!”

Fortunately, I packaged everything nicely as a simple web app project, uploaded into Github and added instructions on how you can use it right away.

Web Get it here: https://github.com/shahedc/SimpleUpload

I tested it in Visual Studio 2017 v15.8.6 and Visual Studio Code, so either should work for you.

simple-upload-ui

Continue reading

Hello ASP .NET Core!

By Shahed C on October 6, 2018

It’s been a while since I wrote a new blog post besides event announcements and posting slides so here’s the first of a new series of posts. The topic: ASP .NET Core!

ASPNETCoreLogo-300x267

Why ASP .NET Core?

With all the things I’ve been working with lately, I’ve still kept up to date on what’s new with ASP .NET Core for building Web Apps, Web APIs and even full-stack C# web applications with Blazor!

With the release of ASP .NET Core 2.1, and the upcoming releases of 2.2 (late 2018) and 3.0 (2019), now is a great time to be an ASP .NET Core developer. But where should you begin? You have many options.

Dev Tools for ASP .NET Core

  1. Visual Studio for Windows: a full-fledged IDE that runs on Windows (or even on Windows on your Mac via Parallels/Bootcamp. Get the latest version to try out new stable ASP .NET features and get the Preview versions to try cool new features. Install just the pieces you need. Start with the free Community edition for students, individuals and open-source projects.
  2. Visual Studio for Mac: build ASP .NET Core applications on a Mac in a full-fledged IDE. VS for Mac can also be used for macOS apps, Xamarin mobile apps for iOS/Android, cloud apps and more!
  3. Visual Studio Code: super light-weight code editor available on Windows, MacOS and Linux. Use the dotnet CLI tools in the integrated Terminal to quickly build ASP .NET Core web apps and more!

vs-logos

Continue reading

Build 2018 Videos for .NET Developers

By Shahed C on May 10, 2018

Hope you got a chance to watch some of the Build 2018 keynotes and sessions, either in person or online:

Build2018-logo

If you’re looking for videos on .NET Core, ASP.NET Core and the future of C# and .NET, here’s a handy list, followed by embedded videos from the MS Dev channel on YouTube.

.NET Overview & Roadmap

Entity Framework Core 2.1: Simple, Powerful Data Access for .NET

Modernizing Desktop Apps on Windows 10 with .NET Core 3.0

ASP.NET Core SignalR

What’s new in Web Development with ASP.NET Core 2.1

The future of C#

The Future of .NET on the Desktop

The videos themselves are hosted on YouTube, so here are the same videos, embedded below:

.NET Overview & Roadmap

YouTube link: https://www.youtube.com/watch?v=KAIJ3ezQb3c

Entity Framework Core 2.1: Simple, Powerful Data Access for .NET

YouTube Link: https://www.youtube.com/watch?v=k55kDH_ixrQ

Modernizing Desktop Apps on Windows 10 with .NET Core 3.0

YouTube Link: https://www.youtube.com/watch?v=spgI12ZEBcs

ASP.NET Core SignalR

YouTube Link: https://www.youtube.com/watch?v=u0_vkWYYXRc

What’s new in Web Development with ASP.NET Core 2.1

YouTube Link: https://www.youtube.com/watch?v=SEgyZRau0rU

The future of C#

YouTube Link: https://www.youtube.com/watch?v=QZ0rWLaMZeI

The Future of .NET on the Desktop

YouTube Link: Coming Soon!

Xbox One Game Dev @ .NET Conf UY

By Shahed C on November 6, 2017

I presented Azure Functions at .NET Conf UY on Fri October 27, 2017. Here is the presentation material with the slides, links and my contact information.

Xbox One

Download PPTX or view slideshow below

SlideShare: https://www.slideshare.net/shahedC3000/game-on-with-windows-xbox-one-net-conf-uy

Create and publish your own games for Windows and Xbox One, using free development tools from Microsoft and our game development partners. Use Visual Studio, C# and .NET along with Unity to build 2D or 3D experiences for gamers, with support for keyboard, mouse, touch and controllers for all major platforms to maximize your reach with less effort. Also learn about Construct 3 for simpler 2D games or prototypes, with support for modern app stores, desktop and Xbox One.