Questions tagged [dotnet-tool]

Refers to the dotnet tool cli commands used with a .NET Core Global Tool

57 questions
46
votes
2 answers

Should I check the dotnet-tools .config directory into source control?

Recently I've noticed a .config directory being created by Visual Studio with a dotnet-tools.json file in. Should this be .gitignored or checked into source control?
Jez
  • 27,951
  • 32
  • 136
  • 233
16
votes
4 answers

How to build .sqlproj projects using "dotnet" tool?

Unable to build .Net .sqlproj using "dotnet" command line tool. Here's the error: dotnet\sdk\3.1.300\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found I have installed SSDT tool but it's not available at…
Raza
  • 230
  • 1
  • 4
  • 11
10
votes
1 answer

How to run AWS Lambda dotnet on localstack

The DotNet3.1 AWS Lambda I have created an AWS Lambda solution with C# DotNet3.1 using the Amazon template dotnet new serverless.AspNetCoreWebAPI -n MyDotNet.Lambda.Service this creates a lambda function whose handler is…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
8
votes
1 answer

Github Action- How to restart the session?

I have a Github Action that creates a dotnet tool, and trying to use it. $ dotnet pack MyTool.csproj --configuration Release $ dotnet tool install --global --add-source . MyTool Since you just installed the .NET Core SDK, you will need to logout or…
baruchiro
  • 5,088
  • 5
  • 44
  • 66
7
votes
4 answers

How to exclude certain file types from dotnet watch run?

Looking to get the following setup going: I'm working on a Blazor app, and with the official css isolation bundler. I'm using Less though, and installed a Less transformer which creates the required css on build. However, running my app via dotnet…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
5
votes
2 answers

Cannot install playwright: Couldn't find project using Playwright. Ensure a project or a solution exists in

I'm trying to install playwright on my deployment target machine in order to run UI tests. # Install the CLI once. dotnet tool install --global Microsoft.Playwright.CLI playwright install however when using the playwright CLI including playwright…
Liero
  • 25,216
  • 29
  • 151
  • 297
5
votes
1 answer

Is it possible to use wild card versions for dotnet global/local tools?

We use the normal dotnet-tools.json for setting up our dotnet local tools for our project but was wondering if there is a way to use wild card versions for the version numbers like you can do within csprojs with package references?
Kevin Smith
  • 13,746
  • 4
  • 52
  • 77
5
votes
3 answers

Run dotnet tool restore to make the dotnet-ef command available

I'm having a quite strange situation with Visual Studio and EF migrations in Publish Profile. Given: Visual Studio 2019 v16.4 .NET Core project. Targets .NET Core 3.1 EF 3.1 Azure publish profile I've created migrations in local project and when…
5
votes
0 answers

Docker - Uninstall Dotnet Global Tool installed through Dockerfile

I am installing a dotnet tool globally through Dockerfile using the following: RUN dotnet tool install --global Amazon.Lambda.Tools --version 3.3.0 ENV PATH="$PATH:/root/.dotnet/tools" I have another tool (aws sam) that tries to…
Emon
  • 801
  • 9
  • 26
4
votes
2 answers

Cannot install anything using dotnet tool install command

I'm trying to install the dotnet-ef tool via the dotnet-cli. The command that I enter: dotnet tool install --global dotnet-ef It gives me the following error: …
Abby
  • 41
  • 3
4
votes
1 answer

dotnet tool update not getting latest version in nuget

I'm playing with dotnet-tool and nuget; I noticed that if I push a refresh nameOfPackage.nupkg to the nuget repo and then run dotnet tool update -g nameOfPackage it does not take the new package version. I have to force a cache clear to get it to…
JosephS
  • 744
  • 5
  • 22
4
votes
3 answers

How to update all of my dotnet global tool by one command

I install too many dotnet tool but how to keey they in lastest version. I do not want to update them manual. I find the github issus: Add dotnet tool update --all option · Issue #10130 · dotnet/sdk
lindexi
  • 4,182
  • 3
  • 19
  • 65
4
votes
1 answer

Could not execute dotnet swagger command

I'm trying to execute the dotnet swagger command but received an error message: Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended…
ROMAN
  • 1,476
  • 2
  • 11
  • 24
4
votes
5 answers

Cannot list Entity Framework Migrations in Visual Studio 2019 due to dotnet ef dbcontext --json failure

I have an ASP.NET Core 3.0 project that uses .NET Core 3.0. I have recently upgraded VS 2019 to version 16.4.1. I use Web Publish from Visual Studio to deploy the application on various environments, but this failed after the upgrade due to EF…
3
votes
2 answers

Update .NET Core Tools

I'm trying to use EntityFrameworkCore@3.1. In order to do this at this point I already have: - Installed Visual Studio 2019 Preview - Installed the .NET Core 3.1 Runtime - Installed the .NET Core 3.1 SDK Now I still can't run the command dotnet ef…
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
1
2 3 4