Skip to content

Update ASP.NET Core packages #801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 11, 2019

This PR contains the following updates:

Package Type Update Change References
Microsoft.AspNetCore.Hosting.Abstractions nuget minor 2.0.0 -> 2.2.0 source
Microsoft.AspNetCore.Mvc.Core nuget minor 2.0.0 -> 2.2.5 source
Microsoft.AspNetCore.Mvc.ViewFeatures nuget minor 2.0.0 -> 2.2.0 source
Microsoft.AspNetCore.StaticFiles nuget minor 2.0.0 -> 2.2.0 source

Release Notes

aspnet/Hosting

v2.2.0

Compare Source

v2.1.1

Compare Source

v2.1.0

Compare Source

v2.0.3

Compare Source

v2.0.2

Compare Source

v2.0.1

Bugs Fixed
  • Port logging startup exceptions in 2.0.x (#​1174)
aspnet/AspNetCore

v2.2.5

Compare Source

v2.2.2

Compare Source

v2.2.0

Compare Source

ASP.NET Core release notes

We have disabled view recompilation when .cshtml change by default (except for the Development environment). A new flag called AllowRecompilingViewsOnFileChange has been introduced in RazorViewEngineOptions, which can be used to configure whether the view engine will watch for file changes. The settings is set to false by default for all environments but Development. If you are using Visual Studio to debug, then it will launch the application in the Development environment by default. You can find more details about the change by looking at this PR: aspnet/Mvc#​8369

In case you would like to keep the view recompilation enabled for your project, you can choose so by configure Razor options in Startup.ConfigureService method using the following code block:

services.AddMvc()
    .SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
    .AddRazorOptions(options => options.AllowRecompilingViewsOnFileChange = true);

Repos

v2.1.11

Compare Source

v2.1.3

Compare Source

ASP.NET Core 2.1.3

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

Bugs Fixed

Known issues

Razor compilation is slow if you have a space in your username

aspnet/Razor#​2406 - when building an ASP.NET Core app as a user with a space in username, build times may be a few minutes more than it takes when building as a different user.

Solutions:

  1. Add a PackageReference to your project file (.csproj) to update the Razor compiler.
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" />
  1. Change your username to something without spaces.
EntityFrameworkCore commands in the Visual Studio Package Manager Console issue a warning

When using EntityFrameworkCore commands in the Package Manager Console, you may see a warning with this text.

The EF Core tools version '2.1.1-rtm-30846' is older than that of the runtime '2.1.2-rtm-30921.' Update the tools for the latest features and bug fixes.

Available solutions:

  1. Do nothing. This warning can be ignored for now. We are working on a fix for a future 2.1 update.
  2. Update the version of the Microsoft.AspNetCore.App package.
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" />

⚠️ This may have unintended consequences on your deployment environment. If the deployment environment does not have the the 2.1.3 runtime, apps will fail to start with an error. In Azure or apps hosted behind IIS, this may appear as HTTP 502.5 error.

It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.3' was not found.

Version mismatches can cause apps to fail with System.IO.FileLoadException

Some ASP.NET Core 2.1 applications will be affected by a bug in the .NET Core host (see dotnet/core-setup#​4512) which can cause apps to fail with System.IO.FileLoadException. The issue may also be present in your app, even if the app does not fail with System.IO.FileLoadException.

This issue and workarounds are described in greater detail in aspnet/Home#​3503

v2.1.2

Compare Source

ASP.NET Core 2.1.2 Release Notes

This update includes two security fixes. Please see the following links for details.

v2.1.1

Compare Source

ASP.NET Core 2.1.1 Release Notes

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

v2.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 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>>>.

v2.0.3

Compare Source

ASP.NET Core 2.0.3 Release Notes

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

You can find details on the issues fixed in this release for the following components on their corresponding release pages:

Breaking Changes

There are no breaking changes in this release.

Known Issues

There are no known issues with this release.

v2.0.2

Compare Source

v2.0.1

Compare Source

aspnet/Mvc

v2.2.0

Compare Source

v2.1.3

Compare Source

v2.1.2

Compare Source

v2.1.1

Compare Source

v2.1.0

Compare Source

v2.0.4

Compare Source

v2.0.3

Compare Source

v2.0.2

Compare Source

v2.0.1

Bugs Fixed
  • Microsoft Security Advisory CVE-2017-11879: Open Redirect can cause Elevation Of Privilege (#​7053)
  • Port fix for URL helper redirect to 2.0.x patch (#​6910)
  • Port fix to 2.0.1: Zero Content-Length for static file 304 #​6875 (#​6887)
  • Port to 2.0.1: Injecting IViewLocalizer into Razor Page causing IndexOutOfRangeException. (#​6837)
  • Port to 2.0.1: Input fields don't emit (and thus round-trip) offset value when binding against DateTimeOffset fields (#​6834)
  • Port part of fix to 2.0.x for: Returning a file, accept-ranges headers, and browser behaviors #​6780 (#​6792)
  • Allow "page" route parameter to be used in Mvc application without Razor Pages (#​6706)
  • CSharpCompiler does not parse LangVersion value correctly. (#​6611)
aspnet/StaticFiles

v2.2.0

Compare Source

v2.1.1

Compare Source

v2.1.0

Compare Source

v2.0.3

Compare Source

v2.0.2

Compare Source


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@renovate renovate bot force-pushed the renovate/asp.net-core-packages branch from c56e6b8 to c8e76c1 Compare May 14, 2019 15:49
@renovate renovate bot force-pushed the renovate/asp.net-core-packages branch from c8e76c1 to 8156b5b Compare May 27, 2019 03:54
@dustinsoftware
Copy link
Member

#791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants