← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 202
  1. In the previous post, I announced that dotnet-script is now built as global tool and can be installed using .NET Core 2.1 preview SDK.

  2. dotnet-script now available as .NET Core SDK 2.1 global tool

    Yesterday we released version 0.20.0 of dotnet-script - a command line tool that allows you to run C# scripts (.csx) in the .NET Core runtime.

  3. Generic and dynamically generated controllers in ASP.NET Core MVC

    One of those recurring themes that seem to come back fairly regularly among .NET web developers, is the usage of generic controllers to define endpoints in their Web APIs.

  4. Today I wanted to show you something that I hope could be a very useful addition to your .NET Core development toolbox, and that is an ultra-lightweight of doing performance benchmarking for your code using BenchmarkDotNet and dotnet-script.

  5. ASP.NET Core MVC 2.1 will ship with a nice little feature aimed specifically at people building HTTP APIs - ApiControllerAttribute.

  6. Easy way to create a C# lambda expression from a string (with Roslyn)

    I’ve worked on quite a lot of projects over the years, with many different teams, and one of the questions that keeps coming back to me over and over with a high degree of regularity is how to load a C# lambda from a string - for example from a configurat…

  7. TypedRouting for ASP.NET Core MVC 2

    Today I have released a new version of Strathweb.TypedRouting.AspNetCore.

  8. [Required] and [BindRequired] in ASP.NET Core MVC

    When controlling the binding behavior of models in ASP.NET Core MVC applications, it is very common to perform some validation on them.

  9. Last week, together with [Bernhard][1] we released version [0.16 of dotnet-script][2], the .NET Core 2.0 C# script runner.

  10. C# Script Runner for .NET Core 2.0!

    As you may have read on this blog before, together with Bernhard, we have been working on a .NET Core and .NET CLI C# script runner, called dotnet-script, for a while now.

  11. Self-issuing an IdentityServer4 token in an IdentityServer4 service

    When building logic around the IdentityServer4 extensibility points, it is sometimes necessary to dynamically issue a token, with which your code can then call some external endpoints or dependencies.

  12. Solution-wide Nuget package handling in .NET SDK-based projects

    In this blog post I’d like to show you a very simple technique for ensuring all your Nuget packages across all the projects in a solution have the same version.

  13. Strathweb TypedRouting AspNetCore 1.1.0 released!

    Today I have released the 1.1.0 version of Typed Routing project.

  14. dotnet-script 0.11 out – with inline Nuget support

    Yesterday I released, thanks to the great help of Bernhard - version 0.11 of dotnet-script, the C# script runner for .NET Core.

  15. Customizing query string parameter binding in ASP.NET Core MVC

    A few years ago I blogged about binding parameters from URI in ASP.NET Web API.

  16. Using MessagePack with ASP.NET Core MVC

    Some time ago (actually, almost 5 years ago), I blogged about using MessagePack with ASP.NET Web API in order to improve your API’s efficiency over JSON - both in terms of serialization speed and in message payload size.

  17. Using IActionConstraints in ASP.NET Core MVC

    ASP.NET Core provides a way to constraint parameter values when matching routes via an IRouteConstraint (read more here) interface.

  18. Resolving ASP.NET Core Startup class from the DI container

    In ASP.NET Core, the most common setup is characterized by having a standalone Startup class, responsible for bootstrapping the services needed by your application, as well as setting up the application pipeline.

  19. Using Roslyn refactorings with OmniSharp and Visual Studio Code

    One of the features that we added to a recent OmniSharp release (which, as a reminder, backs the C# language services in various editors), and that quietly shipped in C# for Visual Studio Code 1.10.0 last week, was the ability to use external Roslyn refac…

  20. The other day I started looking into a problem of being able to run several independent ASP.NET Core pipelines from within the same main application, running on top of the same Kestrel server.

  21. Disposing resources at the end of ASP.NET Core request

    Today, let’s have a look at dealing with disposable objects in ASP.NET Core.

  22. Building microservices with ASP.NET Core (without MVC)

    There are several reasons why it makes sense to build super-lightweight HTTP services (or, despite all the baggage the word brings, “microservices”).

  23. C# code formatting settings in VS Code and OmniSharp

    I quite often get or see questions about configuring C# code formatting settings for Visual Studio Code.

  24. Accessing HttpContext outside of framework components in ASP.NET Core

    When developing web applications with ASP.NET, it is common to end up in situations where you require access to HttpContext.

  25. Writing C# build scripts with FAKE, OmniSharp and VS Code

    In this blog post I’d like to show an extremely - in my opinion - productive way of writing build scripts using C#.

  26. Announcing ConfigR 1.0

    Recently we released version 1.0 of ConfigR - a popular .NET configuration library, that lets you configure your application via C# scripts (CSX).

  27. Lazy async initialization for expiring objects

    Today I wanted to share something I found myself using quite a lot recently, and that is not supported out of the box by the .NET framework.

  28. Introducing C# script runner for .NET Core and .NET CLI

    In this post I wanted to share a little project I’ve been working on recently - a .NET CLI and .NET Core based script runner for C# (CSX scripts).

  29. Strongly typed configuration in ASP.NET Core without IOptions

    There are several great resources on the Internet about using the new Configuration and Options framework of ASP.NET Core - like this comprehensive post by Rick Strahl.

  30. Required query string parameters in ASP.NET Core MVC

    Today let’s have a look at two extensibility points in ASP.NET Core MVC - IActionConstraint and IParameterModelConvention.

  31. [Controller] and [NonController] attributes in ASP.NET Core MVC

    One of the late additions before the RTM release of ASP.NET Core MVC was the introduction of the [Controller] attribute, and its counterpart, [NonController], which were added in RC2.

  32. Building Analyzers & Refactoring Tools with Roslyn (from NDC Sydney)

    Last month I was at the excellent NDC Sydney conference, where I did a talk about building code analyzers and refactoring tools with Roslyn.

  33. In this blog post let’s have a look at building a lightweight site in ASP.NET Core.

  34. Announcing WebApiContrib for ASP.NET Core

    In the past, a bunch of us from the ASP.NET Web API community worked together on a WebApiContrib project (or really, projects, cause there were many of them!).

  35. Customizing FormatFilter behavior in ASP.NET Core MVC 1.0

    When you are building HTTP APIs with ASP.NET Core MVC, the framework allows you to use FormatFilter to let the calling client override any content negotiation that might have happened on the server side.

  36. Inheriting route attributes in ASP.NET Web API

    I was recently working on a project, where I had a need to inherit routes from a generic base Web API controller.

  37. Implementing custom #load behavior in Roslyn scripting

    #load directives in C# scripts are intended to allow you to reference a C# script source file from another C# script.

  38. Global route prefix in ASP.NET Core MVC (revisited)

    A couple of months ago I blogged about adding a feature to ASP.NET Core MVC (or ASP.NET 5 at the time) that will allow you to set central route prefix(es) to your attribute routing mechanism.

  39. Introducing Strathweb TypedRouting for ASP.NET MVC Core

    One of the side projects I created for Web API a while ago was Strathweb.TypeRouting - a little library built on top of the attribute routing extensibility points, that allowed you to declare Web API routes centrally, in a strongly typed way (as opposed to

  40. Running multiple ASP.NET Web API pipelines side by side

    Over the past 4 years or so, I have worked on many Web API projects, for a lot of different clients, and I thought I have seen almost everything.

  41. NDC Oslo Web API sample updated to ASP.NET Core RC2

    Last year at NDC Oslo I did a talk about migrating from ASP.NET Web API to ASP.NET 5 MVC 6 (as it was called at the time).

  42. IP Filtering in ASP.NET Web API

    One of the functionalities I had to use fairly often on different ASP.NET Web API projects that I was involved in in the past was IP filtering - restricting access to the whole API, or to parts of it, based on the caller’s IP address.

  43. Building strongly typed application configuration utility with Roslyn

    In this post we will have a look at how, with just several lines of Roslyn code, you can build an extremely cool and powerful utility - a library allowing you to provide configuration for your application as a strongly typed C# script file.

  44. Request.IsLocal in ASP.NET Core

    In the “classic” ASP.NET, System.Web.HttpRequest gave us a fairly useful IsLocal property which developers used to identify local requests.

  45. It is quite common to predefine some namespaces to be available in the context of your Razor view files in ASP.NET MVC.

  46. Enabling C# 7 Features in Visual Studio “15” Preview

    Yesterday, at Build, Microsoft released the first public preview of Visual Studio “15” - the next iteration of Visual Studio.

  47. Some time ago I wrote a blog about how ASP.NET MVC 6 discovers controllers.

  48. For a while now, the Roslyn C# scripting APIs (Microsoft.CodeAnalysis.CSharp.Scripting) have been portable, and supported cross platform usage.

  49. OmniSharp Canada Tour 2016

    I’ve said it a couple of times already, but I sincerely believe that the OmniSharp project is one of the most important projects in the history of .NET.

  50. FormatFilter and MediaTypeMappings in ASP.NET Core 1.0 MVC

    In the earlier posts, we looked at how formatters work in general in the upcoming MVC Core 1.0 (although at that time it was still being referred to as MVC 6) and how XML formatters can be enabled in your ASP.NET Core application.