Skip to content
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

ASP.NET Core 2.2 to 3.0 migration #9490

Closed
Rick-Anderson opened this issue Nov 7, 2018 · 1 comment · Fixed by #10122
Closed

ASP.NET Core 2.2 to 3.0 migration #9490

Rick-Anderson opened this issue Nov 7, 2018 · 1 comment · Fixed by #10122
Assignees
Milestone

Comments

@Rick-Anderson
Copy link
Contributor

No description provided.

@natemcmaster
Copy link
Contributor

We're getting close to 3.0 Preview 1. Here is some information that I shared with our testers which I believe will also be relevant for customers.

The following changes need to be made to project files to upgrade from ASP.NET Core 2.x to 3.0.

  • Update <TargetFramework> to netcoreapp3.0

  • Remove the <PackageReference> to Microsoft.AspNetCore.All and Microsoft.AspNetCore.App.

    • Preview 1 Known Issue - workaround for Represent FrameworkReferences in NuGet - pack & restore support NuGet/Home#7342 - projects which do not start with <Project Sdk="Microsoft.NET.Sdk.Web"> will get compiler or runtime errors due to missing Microsoft.AspNetCore.* assemblies. This is most often the case for test projects and class libraries. The workaround is to add the following to the .csproj file.
     	<ItemGroup>
     	   <FrameworkReference Include="Microsoft.AspNetCore.App" />
     	</ItemGroup>
  • Update the Version on remaining <PackageReference>'s to Microsoft.AspNetCore.* packages to 3.0.0-preview-18579-0053 (or whatever the Preview 1 build number ends up being)

  • Some APIs were removed from Microsoft.AspNetCore.App between 2.x and 3.0. You may need to add <PackageReference> items if you are using API from packages listed in Assemblies being removed from Microsoft.AspNetCore.App 3.0 aspnetcore#3755

    • Notable mentions: Entity Framework Core and System.Data.SqlClient are no longer part of Microsoft.AspNetCore.App.
    • Preview 1 Known Issue - the assemblies shipping in Microsoft.AspNetCore.App has not been finalized yet and will change before 3.0 RTM. We intend to remove a few more assemblies, most notably Newtonsoft.Json.

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 a pull request may close this issue.

3 participants