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

restore command in root folder of Asp Net Core project fails #16921

Closed
nurlanmmikayilov opened this issue Nov 8, 2019 · 3 comments

Comments

@nurlanmmikayilov
Copy link

@nurlanmmikayilov nurlanmmikayilov commented Nov 8, 2019

Hi,I have cloned aspnetcore project and followed the instruction here in GitHub step-by-step but when ran restore command in the root directory of project I got the following errors.

C:\Users\Nurlan.nuget\packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19517.3\tools\Tools.proj : error : Unable to loc
ate the .NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the in
stalled version.

C:\Users\Nurlan.nuget\packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19517.3\tools\Tools.proj : error MSB4236: The SD
K 'Microsoft.NET.Sdk' specified could not be found.
Build failed.

Please help me in order to solve this issue.

@javiercn

This comment has been minimized.

Copy link
Member

@javiercn javiercn commented Nov 8, 2019

@nurlanmmikayilov thanks for contacting us.

Can you try cleaning the repository with git clean -xdff and re-running it?

@aspnet/build cn you help out here?

@nurlanmmikayilov

This comment has been minimized.

Copy link
Author

@nurlanmmikayilov nurlanmmikayilov commented Nov 8, 2019

@javiercn thanks for help but it didn't solve the issue.After doing what you suggested i got the following error.

Building of C# project is enabled and has dependencies on NodeJS projects. Building of NodeJS projects is enabled since node is detected in C:\Program Files. Detected JDK in C:\Program Files\Java\jdk1.8.0_161 (via JAVA_HOME)
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100-preview1-014400/dotnet-sdk-3.1.100-preview1-014400-win-x64.zip
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100-preview1-014400/dotnet-sdk-3.1.100-preview1-014400-win-x64.zip
dotnet-install: Adding to current process PATH: "C:\Users\Nurlan\Desktop\AspNetCore\AspNetCore.dotnet". Note: This change will not be visible if PowerShell was run as a child process.
dotnet-install: Installation finished
Downloading vswhere
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
C:\Users\Nurlan.nuget\packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19517.3\tools\Tools.proj : error : Unable to loc
ate the .NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the in
stalled version.
C:\Users\Nurlan.nuget\packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19517.3\tools\Tools.proj : error MSB4236: The SD
K 'Microsoft.NET.Sdk' specified could not be found.
Build failed.

@dougbu

This comment has been minimized.

Copy link
Member

@dougbu dougbu commented Nov 8, 2019

This sounds like https://github.com/aspnet/AspNetCore/blob/master/docs/BuildErrors.md#error-msb4236--unable-to-locate-the-net-core-sdk or https://github.com/aspnet/AspNetCore/blob/master/docs/BuildFromSource.md#common-error-unable-to-locate-the-net-core-sdk

@nurlanmmikayilov please follow the instructions at those links. And, thank you for your feedback. We're closing this issue as the questions asked here have been answered. Feel free to reopen if the documents don't help.

@dougbu dougbu closed this Nov 8, 2019
@dougbu dougbu added the question label Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.