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

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.

主站蜘蛛池模板: 绍兴市| 信宜市| 博爱县| 三都| 武平县| 定远县| 东阳市| 嘉定区| 出国| 玛多县| 成都市| 浙江省| 康乐县| 隆安县| 永安市| 伊宁市| 武汉市| 龙胜| 大足县| 灌阳县| 大埔区| 长沙县| 刚察县| 肥城市| 武安市| 西丰县| 徐水县| 石景山区| 云浮市| 攀枝花市| 体育| 南陵县| 南雄市| 民乐县| 醴陵市| 饶平县| 娄烦县| 沐川县| 孟连| 开封市| 合水县|