dotnet tool install requires full SDK
See original GitHub issueSteps to reproduce
- install dotnet core runtime https://www.microsoft.com/net/download/thank-you/dotnet-runtime-2.1.3-windows-hosting-bundle-installer
- run dotnet tool install -g sometool
Expected behavior
tool will be installed
Actual behavior
It is asking to install the sdk
Environment data
dotnet --info
output:
Host (useful for support):
Version: 2.1.3
Commit: 124038c13e
.NET Core SDKs installed:
No SDKs were found.
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
I have a couple of CLI tools that I would like to use in production (mainly for deployment) and I am unable to install the SDK. Is there any way to get this to work with just the runtime (with powershell or something)?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
dotnet tool install command - .NET CLI
Specifies the target framework to install the tool for. By default, the . NET SDK tries to choose the most appropriate target framework. ......
Read more >NET tools - .NET CLI
How to install, use, update, and remove .NET tools. Covers global tools, tool-path tools, and local tools.
Read more >Tutorial: Install and use a .NET global tool - .NET CLI
Complete the first tutorial of this series. Use the tool as a global tool. Install the tool from the package by running the...
Read more >Install .NET on Windows
In this article, you'll learn how to install .NET on Windows. .NET is made up of the runtime and the SDK. The runtime...
Read more >Tutorial: Install and use .NET local tools - .NET CLI
NET Core 3.0 SDK and later versions. This tutorial teaches you how to install and use a local tool. You use a tool...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@livarcocc Interesting. What is your recommendation for projects like Entity Framework and FluentMigrator that basically recommend running these in production? Ha.
CC @ajcvickers https://docs.microsoft.com/en-us/ef/core/cli/dotnet#aspnet-core-environment
Thank you for the issue!
dotnet publish
, copy the whole folder, and then use dotnet __.dll in production.