Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specified SDK Version not found on .Net 2.0 on cli #2880

Closed
MajorDhaliwal opened this issue Aug 16, 2017 · 1 comment
Closed

Specified SDK Version not found on .Net 2.0 on cli #2880

MajorDhaliwal opened this issue Aug 16, 2017 · 1 comment

Comments

@MajorDhaliwal
Copy link

Installed .Net Core 2.0 with the Ubuntu commands given. Typed dotnet --version.

Here is the output:
The specified SDK version [1.0.0-rc4-004771] from global.json [/home/stonedge1/Projects/dotNet Core/aspnetprjs/ConferenceBarrel/global.json] not found; install specified SDK version Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

my global.json file looks like this:

{
  "sdk": {
    "version": "1.0.0-rc4-004771"
  }
}`

And my .csproj file looks like this:

<Project ToolsVersion="15.0" Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp1.0</TargetFramework>
    
  </PropertyGroup>
  
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore" Version="1.0.4" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.0.3" />
    <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.0.2" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.0.2" />
    <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.0.1" />
    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.0.0"/> 
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="1.0.0"/> 
    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.0"/> 
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
  </ItemGroup>
  
  
</Project> 
@MajorDhaliwal
Copy link
Author

Figured it out:

Changed .json file to:

  "sdk": {
    "version": "2.0.0-006912"
  }
}

@msftgits msftgits transferred this issue from dotnet/core-setup Jan 30, 2020
@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant