2.1.0
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 customIAuthorizationPolicyProvider
and settingAllowCombiningAuthorizeFilters
totrue
causes aNullReferenceException
.
Workaround: DisableAllowCombiningAuthorizeFilters
or use a singleAuthorizeFilter
-
XmlSerializerOutputFormatter throws InvalidCastException for async action methods
Invoking an Async action method may result in anInvalidCastException
when using theXmlSerializerOutputFormatter
.
Workaround: Wrap the return type inActionResult<T>
. Ex. replace the return typeTask<IEnumerable<string>>
withTask<ActionResult<IEnumerable<String>>>
.