Kasun Koswattha
Kasun Koswattha

Reputation: 2471

how to correctly install dotnet cli on Windows 10 x64

Im trying to migrate my aspnet core RC1 project to RC2.

I have installed preview 1 (DotNetCore.1.0.0.RC2-VS2015Tools.Preview1) and then Preview 2 (dotnet-dev-win-x64.latest). But the When I did dotnet restore, the assemblies were not resolving in the project.json file.

So what I did, I've uninstall everything (Preview 1 and 2) then installed Preview 1 again. But now when I try to run dotnet --info, it gives the below error.

Failed to load the dll from [], HRESULT: 0x80070057

I tried removing temp files but did not work. Can anyone help me with this?

Upvotes: 0

Views: 1809

Answers (1)

Lukasz Mk
Lukasz Mk

Reputation: 7350

Im trying to migrate my aspnet core RC1 project to RC2.

The best way is create new/clean project after installing RC2 and move your code to this new project (or at least use/compare project.json from this new).

In my case it's take me 3-4h and I have no problems after.


I have installed preview 1 (DotNetCore.1.0.0.RC2-VS2015Tools.Preview1) and then Preview 2 (dotnet-dev-win-x64.latest). But the When I did dotnet restore, the assemblies were not resolving in the project.json file.

So what I did, I've uninstall everything (Preview 1 and 2) then installed Preview 1 again. But now when I try to run dotnet --info, it gives the below error.

I'm still using RC2/Tools Preview 1, however I heard about known issues with VS 2015 U3 and Tooling Preview 2.

(btw: which version of VS you are using?)

Solution in that case is reinstalling VC++ Redistributable after installing Tooling Preview2.

Read more here:


If this not help you, then try following steps:

  • Uninstall all ASP.NET Core SDK RC1, RC2, tooling preview 1, preview 2...

  • Clean up your folders manually (Userfolder\Appdata, ProgramData, ProgramFiles (both), Temp),

  • Check if you have installed .NET targeting packs v4.5.1 and v4.6.1 - if not, install them in order form Targeting .NET Platforms.

  • Install stable version of SDK and tools form .NET Core Downloads.

Upvotes: 1

Related Questions