Migration notes for API analyzers (#14086)

* Migration notes for API analyzers

* Apply suggestions from code review

Co-Authored-By: Scott Addie <10702007+scottaddie@users.noreply.github.com>

* update ms.date value
pull/14124/head
Pranav K 2019-09-03 12:57:38 -07:00 committed by Scott Addie
parent 1eacdce56f
commit 23fb22fddd
1 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@ author: rick-anderson
description: Learn how to migrate an ASP.NET Core 2.2 project to ASP.NET Core 3.0.
ms.author: riande
ms.custom: mvc
ms.date: 08/26/2019
ms.date: 09/03/2019
uid: migration/22-to-30
---
# Migrate from ASP.NET Core 2.2 to 3.0
@ -41,6 +41,14 @@ This article explains how to update an existing ASP.NET Core 2.2 project to ASP.
* Remove any `<PackageReference>` to the [Microsoft.AspNetCore.Razor.Design](https://www.nuget.org/packages/Microsoft.AspNetCore.Razor.Design/) package.
* If your application uses [API analyzers](xref:web-api/advanced/analyzers), remove any `<PackageReference>` element for the [Microsoft.AspNetCore.Mvc.Api.Analyzers](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.Api.Analyzers/) package. Edit your project file to use the analyzer shipped as part of the .NET Core SDK:
```xml
<PropertyGroup>
<IncludeOpenAPIAnalyzers>true</IncludeOpenAPIAnalyzers>
</PropertyGroup>
```
* Update the `Version` attribute on remaining `<PackageReference>` elements for `Microsoft.AspNetCore.*` packages to the current preview (for example, `3.0.0-preview5-19227-01`).
If there's no 3.0 version of a package, the package might have been deprecated in 3.0. Many of these packages are part of `Microsoft.AspNetCore.App` and shouldn't be referenced individually. For a preliminary list of packages no longer produced in 3.0, see [Stop producing packages for shared framework assemblies in 3.0 (aspnet/AspNetCore #3756)](https://github.com/aspnet/AspNetCore/issues/3756). The *shared framework* is the set of assemblies (*.dll* files) that are installed on the machine and referenced by `Microsoft.AspNetCore.App`. For more information, see [The shared framework](https://natemcmaster.com/blog/2018/08/29/netcore-primitives-2/).