Y hoy vamos a comentar muy rápidamente otro cambio que han introducido hace relativamente poco tiempo, y que afecta a lo que contábamos hace algunas semanas sobre la nueva carpeta "wwwroot", el lugar donde colocaremos todos los archivos estáticos usados por nuestra aplicación web.
Publicado por José M. Aguilar a las 9:05 a. m.
Etiquetas: aspnetcore, aspnetcoremvc, trucos
.Net
- VerbalExpressions: Crea expresiones regulares describiéndolas
CampusMVP - Back to Basic : Difference Between int.Parse() and int.TryParse()
Abhijit Jana - Tor.NET - A managed Tor network library
Chris Copeland - New features in C# 7
Kenneth Truyers - Combining LINQ Queries (or, When to Call ToList)
Peter Vogel - How to Tell if an Assembly is Debug or Release
Dave Black - The week in .NET - 1/19/2016
Bertrand Le Roy - .NET Methods Inlining and Loops
Dmitry Orzhevsky - Learn Roslyn Now: Part 16 The Emit API
Josh Varty - From Task to Async/Await
Subhamoy Burman
Este mismo criterio se aplicó a otros productos que también habían sido creados from scratch, como .NET Core, que se versionó como 5.0, o el nuevo Entity Framework, cuya flamante primera versión sería la 7.0.
La cuestión es que este enfoque en la asignación de nombres y versiones no fue del agrado de muchos, que pensábamos que algo creado desde cero y que rompía en bastantes aspectos con lo anterior no tenía sentido lanzarlo a la calle simplemente como un incremento de versión de un producto existente. Es difícil de explicar y difícil de comprender.
Pues bien, hace unas horas recibíamos el comunicado oficial de que ASP.NET 5 ha cambiado su nombre por ASP.NET Core.
Publicado por José M. Aguilar a las 11:39 a. m.
Etiquetas: aspnet5, aspnetcore, aspnetcoremvc, entity framework, noticias
Nuestro componente, al que habíamos llamado
HeaderTransformMiddleware
, podíamos añadirlo al pipeline indicándole qué encabezados queríamos modificar y con qué valores (o nulo, si lo que queríamos era eliminar el encabezado). Por ejemplo, con el siguiente código añadíamos el encabezado "X-Author" y suprimíamos "Server":var transforms = new Dictionary<string, string>() { ["X-Author"] = "José M. Aguilar", ["Server"] = null }; app.UseHeaderTransform(transforms);
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
X-Author: José M. Aguilar
X-Powered-By: ASP.NET
Content-Length: 8011
El problema viene cuando intentamos eliminar ese "X-Powered-By: ASP.NET" que aparece siempre que ejecutamos nuestra aplicación sobre IIS Express o IIS. En este caso, cualquier intento de eliminarlo usando middlewares será infructuoso..Net
- The Loyc LL(k) Parser Generator: Part 2
Qwertie - Supporting Multiple String Formats from Your Class
Peter Vogel - Singleton Indexer - A Workaround for not having Static Indexers in C#
Nick Chamberlain - The week in .NET - 1/12/2016
Bertrand Le Roy - C# 6 under the hood: nameof operator
Erik Schierboom - Difference Between IEnumerable, ICollection and IList Interface in C#
Sarmistha Panda - To base() or not to base(), that is the question
Jon Skeet - Get Property Names Using Lambda Expressions in C#
Anton Angelov - Curiosidades de C#: tipado estructural… sólo para algunos
Juan María Hernández
.Net
- What's New with .NET Framework 4.6, Part 1: API Updates
Eric Vogel - Implement Tasks for Executing on Application-Start from Any Layers or Plugins: C# .NET
Farhad Taghavi Azar Sharabiani - How To Tell If An IQueryable Is In Memory Or Not?
Khalid Abuhakmeh - The week in .NET - 1/5/2016
Bertrand Le Roy - Having a Look at dotnet CLI Tool and .NET Native Compilation in Linux
Tugberk Ugurlu - Learn Roslyn Now: Part 14 Intro to the Scripting API
Josh Varty - ExpressMapper: lightweight and easy to use .Net mapper
George Anisimov