Refers to the dotnet tool cli commands used with a .NET Core Global Tool
Questions tagged [dotnet-tool]
57 questions
2
votes
2 answers
How to ensure a "dotnet tool" is installed in an Azure Pipeline?
In a Azure Devop Build, I'm using a tool(https://github.com/tomchavakis/nuget-license). I want this tool to be installed in my Azure Devop Agent.
I've created this task in my YML:
- task: CmdLine@2
displayName: 'Install…

J4N
- 19,480
- 39
- 187
- 340
2
votes
1 answer
Calling the SonarScanner CLI., Could not find 'java' executable in JAVA_HOME or PATH. for DotNet
I am trying to run sonarqube from docker on linux agent.
install dotnet scanner
dotnet tool install --global dotnet-sonarscanner --version 5.6.0
dotnet sonarscanner begin and dotnet build commands are running fine.
but for dotnet sonarscanner end…

user892077
- 33
- 9
2
votes
2 answers
Cannot install dotnet-ef tool on Windows 11
I'm trying to install the dotnet-ef tool via the dotnet-cli.
The command that I enter: dotnet tool install --global dotnet-ef --version 6.0.4
It gives me the following error:
C:\Users\orbit>dotnet tool install --global dotnet-ef --version…

Igor. A
- 73
- 10
2
votes
0 answers
Where should I store data for a .NET Core Global Tool?
I've recently started work on a .NET Core Global Tool and I have the need to store some user context data, similar to how kubectl config set-context works and affects other kubectl commands. Is there a standard pattern for this with .NET Core Global…

Rob Bell
- 3,542
- 5
- 28
- 49
2
votes
3 answers
No executable found matching command "dotnet-script"
Why doesn't dotnet script run in PowerShell after installation? I closed and reopened all PowerShell instances after installing.
PowerShell throws this error when I run dotnet script init:
No executable found matching command…

Eric Eskildsen
- 4,269
- 2
- 38
- 55
1
vote
1 answer
Script Headless Install .NET 7 SDK on Windows Server 2022 via PowerShell
Is it possible to headlessly install the .NET 7 SDK on a fresh instance of Windows Server 2022 via powershell or batch script?
My goal is to spin up a new Instance and then be able to install and execute a global tool, ie this powershell:
> dotnet…

Philip Pittle
- 11,821
- 8
- 59
- 123
1
vote
0 answers
Install dotnet tool as library
I have a library packaged as tool. I use that same library as a regular project in the solution. I would like to use the nuget package also as library, but it seems that went it has been packaged as tool, it cannot be used as library.
error: NU1202:…

vtscop
- 31
- 11
1
vote
1 answer
I can't use libraries installed with paket tool
I can't open namespaces of libraries i added via paket and use them. If i try to build the project, the compiler complains with
error FS0039: The namespace 'bla bla' is not defined. [path of fsproj]
But i can clearly see them added in…

buraky
- 937
- 1
- 11
- 18
1
vote
1 answer
servicestack VueJS Compile failure
enter image description here
After installing Vuejs in the servicestack then run the project it shows error like this.kindly give a solutions

Sathiya S
- 11
- 1
1
vote
1 answer
dotnet tool - It was not possible to find any compatible framework version - why do we need a major version match of dotnet?
I'm trying to run the dotnet tool Swashbuckle.AspNetCore.Cli (5.6.3) in a Azure Devops build agent with only .NET 5
That doesn't work and I get the following error:
It was not possible to find any compatible framework version
The framework…

Julian
- 33,915
- 22
- 119
- 174
1
vote
1 answer
How can I always update a dotnet tool to the latest version including previews?
When you want to update or install a dotnet tool you need to explicitly provide the version for preview versions.
It doesn't work in our DevOps environment because we need to be the package always the latest (including preview version).
There's no…

berkansasmaz
- 608
- 5
- 16
1
vote
0 answers
MSBuild use local .NET tool if available falling back to global tool if not
I have an MSBuild project with a target that depends on a .NET tool (let's call it do-stuff-tool).
.NET tools can be installed globally and/or locally, and developers using the MSBuild project may have the stable version of the tool installed…

NotRelevant
- 111
- 2
1
vote
1 answer
Using AWS CodeArtifact CredentialProvider with .Net Core - Could not execute because the specified command or file was not found
Last week I followed this AWS tutorial to set up my dotnet CLI to use AWS Code Artifact with the Credential Provider. This can be done with 3 commands:
dotnet tool install -g AWS.CodeArtifact.NuGet.CredentialProvider
dotnet codeartifact-creds…

devklick
- 2,000
- 3
- 30
- 47
1
vote
1 answer
Tool 'dotnet-try' failed to install
Trying to install dotnet-try global tool from the command prompt on Windows by running dotnet tool install -g dotnet-try but failed with the following error.
Failed to create shell shim for tool 'dotnet-try': Command 'dotnet-try' conflicts with an…

Venkata N Bhupathi
- 377
- 3
- 13
1
vote
2 answers
Core 3.1: Cannot run dotnet ef migrations in .DLL project (framework not found)
I ran into a problem after upgrading a project to Core 3.1.
I have a EF Core setup in a Class Library (DLL). When I run
dotnet ef migrations add Init --context TransferDbContext --verbose
I get the error:
Build started...
Build succeeded.
It was…

Soeren Dalby
- 23
- 6