I recently installed the dotnet 1.11.0 Windows Server Hosting package which apparently installs the .NET Core Runtime. I did so on my development box. After doing so, I noticed that I couldn’t run dotnet –version or any dotnet commands (like dotnet build).

Did you mean to run dotnet SDK commands? Please install dotnet SDK from:

I also noticed my .NET Core projects were failing to load in Visual Studio.

Project file is incomplete. Expected imports are missing.

What I finally realized after running, after running Get-Command in PowerShell, was that dotnet was being loaded out of the Program Files (x86) directory.

I looked in my environment variables, and sure enough, the PATH variable had the x86 path before the regular Program Files path. Moving the order fixed my development environment.

Strangely enough, it also didn’t affect my IIS site using .NET Core. It still runs fine after changing the order of the environment variable.

Fixing “Did you mean to run dotnet SDK commands?” error when running dotnet –version More articles about

  1. Did you mean to run dotnet SDK commands

    Put all the net core Of sdk,runtime,hosting All uninstalled and reinstalled 2.1.1 edition , Find and run dotnet The command is the following message : C:\Users\Administrator>dotn ...

  2. brew Installed .net Prompt at run time "Did you mean to run dotnet SDK commands?"

    Unknown cause , But there are solutions Use brew cask Installed .NET Core brew cask install dotnet The result appears at run time : Solution : Download the official .pkg Files installed , Unload it by the way b ...

  3. android studio Tips unable to run mksdcard sdk

    As the title ,android studio Tips unable to run mksdcard sdk sudo apt-

  4. Unable to run mksdcard SDK tool.

    Ubuntu 14.04, install android studio Error in post run ,sdk manager Not working properly Unable to run mksdcard SDK tool. reason , Missing libraries to run :li ...

  5. ubuntu15.10 function android studio error unable to run mksdcard sdk tool

    problem :ubuntu function android studio error unable to run mksdcard sdk tool System version : System is ubuntu 15.10 64 position Confirm the reason : The lack of lib resolvent : ...

  6. How to run Media SDK samples on Skylake【 Reprint 】

    In the last few days, we have seen lot of concern for using Intel Media 2016 on 6th generation Inte ...

  7. Android studio Unable to run mksdcard SDK tool

    /******************************************************************************************** * Andr ...

  8. docker build error /usr/share/dotnet/sdk/2.1.801/Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference

    docker dotnet Restore It's a mistake , At one time the suspicion was linux Of dotnet core sdk It's not installed , Unloaded , Loaded and unloaded , I tried several times, but it didn't work (Microsoft.Common.Cu ...

  9. CentOS7 install dotnet sdk 2.1.401 The easy way

    1. download linux Version of tar package Path is : https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.1.401-linux-x64 ...

Random recommendation

  1. c#+handle.exe Implementation of the upgrade program in the run-time automatic release of the file is occupied

    Our company recently upgrade program often reported update failure , The reason is , The original is when updating , They may have opened the file being updated again , Causes the file to be updated , The file is occupied by another process , Unable to update normally and report an error , To solve this problem , I spent a week searching for various information and ...

  2. use c Language to write a function to convert decimal to hexadecimal ( turn )

    #include "stdio.h" int main() { int num=0;int a[100]; int i=0; int m=0;int yushu; char hex ...

  3. java 12-3 StringBuffer Add and remove functions of

    1. StringBuffer Add function of : public StringBuffer append(String str): You can add any type of data to the string buffer , And return the string buffer itself public ...

  4. LINQ( Implicit expressions 、lambda expression )

    .NET One of the breakthrough innovations in this project is LINQ(Language Integrated Query, Language integration query ), This set of language extensions allows you to stay away from the comfort of C# Language execution query . LINQ Defines the query representation used to build ...

  5. python How to use sys.excepthook To capture global exceptions 、 Display and output to error In the log

    Use sys.excepthook Function to get the global exception . 1. Use MessageDialog Implement exception display : 2. Use logger Output the captured exception information to the log : step : Define exception handling functions , And use the letter ...

  6. bzoj 1189

    subject :http://www.lydsy.com/JudgeOnline/problem.php?id=1189 This topic seems to use very high-end network flow . There is one thing special about this problem , There are people in every open space , No ...

  7. Android in Notification The use of

    Notification It's very common in the use of mobile phones , For example, we get a text message , A message icon will be displayed in our notification bar to prompt us , We can use this Notification To achieve . He has many usages , Like the news ...

  8. cocos2d-x On android stay call to OpenGL ES API with no current context

    One . problem : Being used JNI leave Java(Android) Side Call back C++(Cocos2d-x) This function returns the message .Cocos2d-x It's gone have a look Eclipse Of Log in . Show Yes  call to Open ...

  9. javaWeb Learning summary (5)- HttpServletRequest application

    HttpServletRequest Object represents the client's request , When the client passes HTTP When the protocol accesses the server ,HTTP All the information in the request header is encapsulated in this object , The developer uses the related methods of this object , That is, we can get the information of customers ...

  10. Python tutorial The use of reading Python Interpreter

    After configuring environment variables , Generally, it can be directly through Python Or specify Python Version number to call Python. Python Some of the things that interpreters do are similar Unix shell: When using terminal devices (tty) When called as standard input , It's an interactive solution ...