本文介绍了“您是要运行dotnet SDK命令吗?请安装dotnetsdk“在Windows命令提示符下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在系统viz上安装了点网核心sdk和运行时(2.2.1).Windows Server 2012R2.我正在尝试使用命令提示符使用

创建控制台应用程序

  dotnet新控制台 

但它说

是否还需要其他配置.环境路径变量还包含以下文件夹C:\ Program Files \ dotnet.我尚未安装VS2017.试图使用VS Code

解决方案

请确保已安装

更新

如果运行 dotnet.exe --list-sdks 命令

,这将是在未安装SDK的服务器上看到的内容

并且安装了SDK:

需要在开发计算机上安装SDK,以便能够构建和运行应用程序以及运行时(通常在应用程序服务器或用户计算机上),以便能够运行已构建的应用程序.

I have just installed dot net core sdk and runtime (2.2.1) on my system viz. a Windows Server 2012R2.I am trying to create a console app using the command prompt using

dotnet new console

but it says

Is there any other configurations needed. The Environment path variable also contains the following folder C:\Program Files\dotnet.I have not installed VS2017. Was trying to use VS Code

解决方案

Please, make sure you've installed SDK not just runtime.

UPDATE

This is what you will see on the server without SDK installed if you run dotnet.exe --list-sdks command

And this with SDK installed:

One needs to install SDK on a development machine to be able to build and run applications and runtime (usually on an application server or user machine) to be able to just run built applications.

这篇关于“您是要运行dotnet SDK命令吗?请安装dotnetsdk“在Windows命令提示符下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 07:58