From 2707a117126aa72409dc14a3b31640ce2962d904 Mon Sep 17 00:00:00 2001 From: Glenn <5834289+glennawatson@users.noreply.github.com> Date: Tue, 14 May 2019 10:40:03 +1000 Subject: [PATCH] Update the README to reflect that MSBuild.Sdk.Extras needs .NET Core 3.0 --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a6af96f..32a2aea 100644 --- a/README.md +++ b/README.md @@ -57,16 +57,21 @@ The final project should look like this: ``` -You can put the `global.json` file next to your solution (use the latest available version of the extras): +If you are using MsBuild.Sdk.Extras version 2 or above, use .NET Core 3 Preview to compile. You can still target previous versions of .Net Core. In this case install the .NET Core 3 preiew and add the following to your `global.json` file: ```json { - "msbuild-sdks": { - "MSBuild.Sdk.Extras": "1.6.68" - } + "sdk": { + "version": "3.0.100-preview" + }, + "msbuild-sdks": { + "MSBuild.Sdk.Extras": "2.0.24" + } } ``` +Above the `sdk` section indicates use the .NET Core 3 preview to build, the `msbuild-sdks` indicates the NuGet package to include. + Then, all of your project files, from that directory forward, uses the version from the `global.json` file. This would be a preferred solution for all the projects in your solution.