I'm trying to use the latest .net tooling.
I've followed the links to install .NET core 1.0.1 and 1.0.0 SDK (as one) from the .NET Core landing page.
This installs the .NET Core SDK 1.0.1:
And if I navagate to the C:\Program Files\dotnet\sdk:
This only has the 1.0.1 .net core version:
EDIT: It seems an old install of the VS 2015 .NET Core tooling installed the old preview version and, interestingly, a x86 version in C:\Program Files (x86)\dotnet\sdk
which I think is the version it's actually using:
And in the Microsoft.NETCore.App:
I can see the latest version installed, alongside an older version (I think this maybe came with VS 2015 update?).
However, when I try following the documentation I quickly find issues.
dotnet new webapi
results in Unrecognized command or argument 'webapi'
. Creating a dotnet new
creates a project.json
instead of the .csproj
I'm expecting.
dotnet --version
reports: 1.0.0-preview2-003133
So it's using the older CLI tools. However, when I try to force the latest version with a global.json with the following in my empty new project directory:
{
"sdk": {
"version": "1.0.1"
}
}
I still get 1.0.0-preview2-003133
reported.
How can I use the latest tools?