官术网_书友最值得收藏!

2. Upgrade TargetFramework

This is the most important step, and this is where the different versions need to be upgraded in the .NET Core project file. Since we know that, with the .csproj type, we don't have project.json, to modify the framework and other dependencies, we can edit the existing project using any Visual Studio editor and modify the XML.

The XML Node that needs to be changed is the TargetFramework. For .NET Core 2.0, we have to change the TargetFramework moniker to netcoreapp2.0, which is shown as follows:

<TargetFramework>netcoreapp2.0</TargetFramework>

Next, you can start building the project which will upgrade the .NET Core dependencies to 2.0. However, there is a chance of a few of them still referencing the older version, and upgrading those dependencies needs to be done explicitly using NuGet package manager.

主站蜘蛛池模板: 竹溪县| 龙陵县| 开远市| 平凉市| 克拉玛依市| 沁阳市| 平山县| 洛浦县| 辽阳市| 双城市| 辽阳县| 怀来县| 西青区| 阿拉尔市| 裕民县| 新宁县| 临安市| 常山县| 湘西| 义乌市| 宣恩县| 黔东| 翁牛特旗| 广水市| 新和县| 阿鲁科尔沁旗| 百色市| 隆安县| 黄石市| 仙居县| 龙游县| 怀安县| 沂水县| 彭水| 永州市| 大同市| 泸定县| 临沭县| 乌恰县| 缙云县| 航空|