Latest release

2.1.0

@danroth27 danroth27 released this May 30, 2018

ASP.NET Core 2.1.0 Release Notes

We are pleased to announce the release of ASP.NET Core 2.1.0.

Known Issues

  • Warning when building new ASP.NET Core project that targets .NET Framework
    Building a new ASP.NET Core project that targets net461 produces the following warning:

    There was a mismatch between the processor architecture of the project being built "x86" and the processor architecture of the reference "c:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.1.0-rtm-30796\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation-x64.exe", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project
    

    Workaround: Remove the reference to the Microsoft.AspNetCore.Mvc.Razor.ViewCompilation package.

  • Windows authentication is not enabled after creating project with the Windows authentication option selected
    When creating a template with Windows authentication, the settings to enable Windows authentication in launchSettings.json are not applied.
    Workaround: Modify launchSettings.json as follows:

    "windowsAuthentication": true,
    "anonymousAuthentication": false,
    
  • NullReferenceException when using a custom IAuthorizationPolicyProvider and AllowCombiningAuthorizeFilters is set to true
    Using a custom IAuthorizationPolicyProvider and setting AllowCombiningAuthorizeFilters to true causes a NullReferenceException.
    Workaround: Disable AllowCombiningAuthorizeFilters or use a single AuthorizeFilter

  • XmlSerializerOutputFormatter throws InvalidCastException for async action methods
    Invoking an Async action method may result in an InvalidCastException when using the XmlSerializerOutputFormatter.
    Workaround: Wrap the return type in ActionResult<T>. Ex. replace the return type Task<IEnumerable<string>> with Task<ActionResult<IEnumerable<String>>>.