2
votes

I downloaded and installed the following on my Windows machine: https://github.com/dotnet/cli

In command line if I type:

dotnet --version

I see the following: 2.0.0-preview2-005905

How can I actually work with this in Visual Studio 2017? The templates still create 1.1 apps. How do I make sure 2.0.0 is my working runtime?

I changed the following in one of my projects:

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

from 1.1 to 2.0

I keep getting Unable to resolve 'Microsoft.NETCore.App (>=2.0.0)' for '.NETCoreApp,Version=v2.0'

1

1 Answers

4
votes

You need to install the preview version of VS 2017 to get it to work. It won't work with your existing version of VS 2017.

Announcing Net Core 2 Preview

VS 2017 Preview