0

I tried to create a new ASP.NET Core 1.1 project using:

dotnet new

However I got the following error:

The specified framework 'Microsoft.NETCore.App', version '1.0.1' was not found.
Check application dependencies and target a framework version installed at:
The following versions are installed: 1.1.0
Alternatively, install the framework version '1.0.1'.

But I do want to create a 1.1 project. I have the following installed:

enter image description here

What am I missing?

Henk Mollema
  • 44,194
  • 12
  • 93
  • 104
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
  • You are likely using dotnet from 1.0.1 sdk and not from 1.1.0 sdk. You can use `where.exe dotnet` to see which one you are using. If you are using the old one you will need to update your %PATH% to include the 1.1.0 sdk folder or use the full path to the dotnet from new sdk. – Pawel Nov 26 '16 at 01:19
  • 1
    Process of elimination, please uninstall the old version of .net sdk. – alltej Nov 26 '16 at 03:27
  • What does `dotnet --info` shows you? – Henk Mollema Nov 26 '16 at 09:02
  • Yes, I solved it by uninstalling the old version of the SDK, Preview 2.1, and updated the Preview 3 to Preview 4. Now I am able to create Projects With Csproj files – Miguel Moura Nov 26 '16 at 11:19
  • @MiguelMoura I had this same issue too because I installed a 1.1 preview. The problem related to a known issue where the preview used the wrong Core version folder name: https://github.com/dotnet/core/blob/master/release-notes/1.1/1.1-known-issues.md After I renamed the folder like the issue states, it worked. – Justin Saraceno Dec 08 '16 at 18:42

0 Answers0