When upgrading from .net core 1.0 to 1.1, you may encounter the following error when running dotnet publish command:
dotnet.exe : No executable found matching command "dotnet-publish-iis"
The resolution is simple: adding the following line into the project.json file. At moment, the latest tool version is 1.1.0-preview4-final.
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.1.0-preview4-final"
},
You may also encounter other similar issues:
Error : No executable found matching command "dotnet-bundle"
The way to resolve the problem is similar.