.NET Core SDK 未安装或在路径下找不到 [英] The .NET Core SDK is not installed or cannot be found under the path

查看:52
本文介绍了.NET Core SDK 未安装或在路径下找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VS 2015 下编译 .Net Core RC2 项目时,我收到以下错误

When compiling .Net Core RC2 project under VS 2015 I am receiving following error

GETSDKTOOLINGINFO : error : The .NET Core SDK is not installed or在路径 C:Program Filesdotnetin 下找不到.这些构建和运行此项目需要组件.

GETSDKTOOLINGINFO : error : The .NET Core SDK is not installed or cannot be found under the path C:Program Filesdotnetin. These components are required to build and run this project.

该目录下确实存在文件.

Files do exist under that directory.

此外,当我在命令行中输入 dotnet 时,我确实看到它正在打印正确的版本号和内容.(.NET 命令行工具 (1.0.0-beta-001598)

Also when I input dotnet into command line I do see it's prining proper version number and stuff.(.NET Command Line Tools (1.0.0-beta-001598)

知道如何解决问题吗?

推荐答案

  1. 删除所有旧版本的核心
  2. 从控制面板卸载适用于 Windows 的 Microsoft .NET CLI(如果存在).这对我有帮助.

安装 RC2 后,请确保您的控制面板仅显示 .Net Core 的这些

After you install RC2, Make sure your control panel shows ONLY these for .Net Core

  • Microsoft .Net Core 1.0.0 RC2 - VS 2015 工具预览 1 (1.0.20513.14)
  • Microsoft .Net Core 1.0.0 RC2 - SDK 预览版 1 (x64) 为 1.0.0.2702 版

希望这会有所帮助.

这篇关于.NET Core SDK 未安装或在路径下找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆