November 13th, 2018

.NET Core tooling update for Visual Studio 2017 version 15.9

Phillip Carter
Program Manager

Update! Starting with Visual Studio 2019, the option has moved to:

Tools > Options > Environment > Preview Features

Old post for posterity:

Starting with Visual Studio 2017 version 15.9, we’ve changed how the Visual Studio tooling for .NET consumes .NET Core SDKs. Prior to this change, installing a preview version of the .NET Core SDK would cause all Visual Studio tooling for .NET Core to use that SDK because it had a higher version.

We now have a compatibility check in the .NET Core SDK that allows for a given SDK to mark a minimum required Visual Studio version. This ensures that the Visual Studio tools for .NET Core will not try to use an SDK that requires a newer Visual Studio version.

For stable releases of Visual Studio, the tools will now default to consuming only the latest stable version of the SDK that is installed on your machine. If you install any preview SDKs, the tools will not consume them by default. You can change this setting in Tools > Options > Projects and Solutions > .NET Core:

For preview releases of Visual Studio, the tools will continue to consume the latest preview version of the SDK that is installed on your machine by default. You cannot change the option to turn this off for preview releases of Visual Studio because they usually require a corresponding preview SDK to work correctly.

If you specify an SDK explicitly with a global.json file, the tooling will adhere to normal global.json rules.

These changes will make the use of .NET Core within Visual Studio more predictable.

Happy hacking!

Author

Phillip Carter
Program Manager

Phillip is a PM on the .NET team, focusing on the F# language, F# documentation, F# tooling, and project system tooling. He wishes he had more time to code, but that doesn't stop him from having fun with people on GitHub. He loves functional programming and language-related tooling, and is always available to chat about wild and wacky ways to make programming more enjoyable.

9 comments

Discussion is closed. Login to edit/delete existing comments.

  • Jose Francisco Rico Moreno

    Where can I see this option In VS 2019 Preview 2?

  • Bonyfus Martin

    Weird. Still does not appear to me after enabling the preview feature and installing preview 8.

  • Andrew Cheeseman

    This has now move to Options > Preview Features

  • Miguel Angel Barrera

    How do i activate this check in VS hosted?

  • David McCarter

    Can this be turned on in VS2019 (not preview)?

    • Randy PagelsMicrosoft employee

      Yes, in VS 2019, change this setting in Tools > Options > Environment > Preview Features > Use preview of the .NET Core SDK.

      • Dominik Hasiwar

        If I try to create a WPF App (.NET Core) project without the option activated, the error message still points me to “Tools | Options | Projects and Solutions | .NET Core”. @vs dev team: please update the message, too.

  • Stephen Naughton

    This does not appear to be in VS2019 Preview, from the article it’s only VS2017?

  • Joseph Ellis

    Is there an equivalent in Visual Studio for Mac? Can’t seem to find it!