Skip to content

Conversation

@mairaw
Copy link
Contributor

@mairaw mairaw commented Jun 15, 2018

@leecow @richlander please let me know if this is what you had in mind for the migration topic.

  • Is there anything missing?
  • Do we need to state that they should also review package references and upgrade them if necessary to use a newer version?
  • Any API changes that should be called out? /cc @terrajobst
  • Do we have a similar topic for EF @divega? I'm already linking to the ASP.NET one.

@mairaw mairaw added P0 labels Jun 15, 2018
@mairaw mairaw self-assigned this Jun 15, 2018
@mairaw mairaw requested review from leecow and richlander June 15, 2018 07:51
@@ -0,0 +1,33 @@
---
title: Migrate from NET Core 2.0 to 2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: missing dot in ".NET Core"

ms.author: mairaw
ms.date: 06/15/2018
---
# Migrate from NET Core 2.0 to 2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: missing dot in ".NET Core"

---
# Migrate from NET Core 2.0 to 2.1

This article shows you how the basic steps for you to migrate your .NET Core 2.0 app to 2.1. If you're looking to migrate your ASP.NET Core application to 2.1, see [Migrate from ASP.NET Core 2.0 to 2.1](/aspnet/core/migration/20_21).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the first sentence: "how" doesn't fit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I went back and forth on this one.


For example, change `<TargetFramework>netcoreapp2.0</TargetFramework>` to `<TargetFramework>netcoreapp2.1</TargetFramework>`.

* Remove `<DotNetCliToolReference>` references for tools that are bundled in the .NET Core 2.1 SDK. These references include:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the minimum SDK version (2.1.300) be mentioned?

* [dotnet-watch](https://github.com/aspnet/DotNetTools/blob/dev/src/dotnet-watch/README.md) (Microsoft.DotNet.Watcher.Tools)
* [dotnet-user-secrets](https://github.com/aspnet/DotNetTools/blob/dev/src/dotnet-user-secrets/README.md) (Microsoft.Extensions.SecretManager.Tools)
* [dotnet-sql-cache](https://github.com/aspnet/DotNetTools/blob/dev/src/dotnet-sql-cache/README.md) (Microsoft.Extensions.Caching.SqlConfig.Tools)
* [dotnet-dev-certs](https://github.com/aspnet/DotNetTools/blob/dev/src/dotnet-dev-certs/README.md) (?)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: there is a question mark at the end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, because I couldn't find how the reference to that was. 😄 I was hoping the reviewers would help me. @scottaddie do you know?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mairaw What's the question?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to add the exact references that need to be removed for each tool but I don't the one used for dotnet-dev-certs. also, can you check that the others are correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe dotnet-dev-certs is something completely new that doesn't replace any references in the .csproj file.

@natemcmaster See Maira's question above. Can you please provide a list of .csproj references to be removed?

Copy link
Contributor

@natemcmaster natemcmaster Jun 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, dotnet-dev-certs never shipped as a DotNetCliToolRef. Here is a list of .csproj references that can be removed: aspnet/Announcements#290

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @natemcmaster. The way it was written in the .NET Core 2.1 blog post announcement, made me think that it existed before:

The following existing DotNetCliReferenceTool tools have been converted to in-box tools.

dotnet watch
dotnet dev-certs
dotnet user-secrets
dotnet sql-cache
dotnet ef
Remove project references to these tools when you upgrade to .NET Core 2.1.

Copy link
Contributor

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a number of mostly minor comments, @mairaw. I thought I'd approve this, though it still needs review by the PU.

---
# Migrate from NET Core 2.0 to 2.1

This article shows you how the basic steps for you to migrate your .NET Core 2.0 app to 2.1. If you're looking to migrate your ASP.NET Core application to 2.1, see [Migrate from ASP.NET Core 2.0 to 2.1](/aspnet/core/migration/20_21).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: for you to migrate --> for migrating
nit: use of "app" in the first sentence, but "application" in the second; they should be consistent


* Open the project file (the \*.csproj, \*.vbproj, or \*.fsproj file).

* Change the [target framework](../../standard/frameworks.md) value from `netcoreapp2.0` to `netcoreapp2.1`. The target framework is defined on the `<TargetFramework>` or `<TargetFrameworks>` element.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on --> by


For example, change `<TargetFramework>netcoreapp2.0</TargetFramework>` to `<TargetFramework>netcoreapp2.1</TargetFramework>`.

* Remove `<DotNetCliToolReference>` references for tools that are bundled in the .NET Core 2.1 SDK. These references include:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it might be useful to explain why tools references can be removed.

Copy link
Member

@leecow leecow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

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.

7 participants