Questions tagged [dotnet-cli]

For use of questions about the .NET Core command line tool-chain. This does not relate to dnx, dvnm, dnu or any of the previous tools build with .NET Core.

The .NET Core command-line interface (CLI) is a cross-platform toolchain for developing .NET applications.

Resources

Related tags

474 questions
0
votes
0 answers

No executable found matching command “dotnet-ef”

When I run dotnet ef I got the following error message No executable found matching command “dotnet-ef” I have no idea how to solve this issue,i tried every possible solution. this how my .csproj looks like
sh.alawneh
  • 639
  • 5
  • 13
0
votes
1 answer

Pushing a DotnetCliTool console project to nuget lists it's project dependencies as package dependencies

I have solution with following projects. MyAppNameSpace.Cli [This is the CLI app which is pushed as DotnetCliTool tonuget] MyAppNameSpace.Core [This project is referenced by the CLI tool] MyAppNameSpace.Common [Common Project shared in the…
Nabin Karki Thapa
  • 483
  • 1
  • 6
  • 18
0
votes
1 answer

Dotnet CLI: How to know the latest version value is actual on the current day?

From Microsoft documentation (here): How to know the latest version value is actual on the current day?
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
0
votes
0 answers

migration files are not added to the DbContext folder location

I executed: dotnet ef migrations add init -c AppDbContext The AppDbContext.cs is located in the: migrations => application folder but the created migration file 20180105_init.cs is created under the migratins folder directly. WHY ? Surely that…
HelloWorld
  • 4,671
  • 12
  • 46
  • 78
0
votes
1 answer

Nuget Package Restore, upon editing Package.Config, in Text Editor?

When merging two projects, we're in need of Install-Package several 100 times. Doesn't Nuget support package restore, once Package.config is edited. The way it works like charm for Node JS package? Once package.config is edited, why can't we fire…
Abhijeet
  • 13,562
  • 26
  • 94
  • 175
0
votes
1 answer

Exception thrown when running asp.net core application on Ubuntu

I have an Ubuntu VM which publishes an ASP.Net Core application 2.0 with CakeBuild . The output is then moved to another Ubuntu VM where .Net Core SDK already installed. When I try to dotnet the main dll file, the following exception is…
Ayman
  • 1,387
  • 4
  • 20
  • 35
0
votes
1 answer

Packing and publishing NuGet packages with .NET CLI in TeamCity

I am trying to create Team City build template which requires minimum customisation, and I want it to play nicely with legacy projects and projects developed with .NET Core/Standard and .NET CLI. I am stuck with NuGet as there were some considerable…
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
0
votes
0 answers

dotnet cli <> VS2017 nuget packages restore errors

I've used dotnet cli (2.0.0) to create 2 projects: dotnet new webapi (name: webapiProject) dotnet new xunit (name: testProject) after that, on testProject project: dotnet add reference webapiProject test project is an integration test and it uses…
dee zg
  • 13,793
  • 10
  • 42
  • 82
0
votes
1 answer

Docker multi-stage builds with .NET Core 2.0 fail because of missing dll:s

I have a .NET Core web app generated by dotnet new web -o foo, and the following (multi-stage) Dockerfile: FROM microsoft/dotnet:2.0-sdk AS builder WORKDIR /build COPY ./foo/foo.csproj . RUN dotnet restore COPY ./foo/*.cs ./ RUN dotnet publish…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
0
votes
1 answer

No dotnet-cli excutable matched when placing in & tags of .csproj file

I am migrating my web application from .Net Core 1.1 to 2.0, and has tried to make it more compatible by ensuring it works both under 1.1 and 2.0. When it comes to making the project packages automatically adapt to the current switched version, I…
Vigilans
  • 98
  • 1
  • 5
0
votes
1 answer

Getting notified about available NuGet packages updates

Visual Studio allows me to see what updates are available for referenced NuGet packages. It allows me as well to update all versions simultaneously . Yet I cannot find similar functionality for dotnet CLI. Is it possible to get the list of updates…
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
0
votes
1 answer

.NET core CLI -> run ERROR

I have a little bit of problem with dotnet core CLI. When I am in a project directory and type: dotnet restore dotnet publish It creates published version of my code. And it says that my project is in **PROJECT NAME** ->…
WutchZone
  • 154
  • 1
  • 3
  • 13
0
votes
2 answers

Both legacy and current dotnet core version support on Linux or Windows?

I have two dotnet core projects. One of them uses dotnet 1.0 (Preview 2 build 3131 and 3133) and other uses dotnet 1.1.1. As far as I know, I cannot run a project.json & xproj based projects with dotnet 1.1.1 and I also cannot run csproj based…
skynyrd
  • 942
  • 4
  • 14
  • 34
0
votes
1 answer

Scaffold ASP.NET Core with Full Framework and Unit Test Projects

I'm trying to find a way to scaffold a new ASP.NET Core site that runs on the full .NET Framework (net461) and contains a unit test project. Is this doable? All of the options for dotnet new mvc don't seem to allow net461 as a framework. The same is…
Brian Vallelunga
  • 9,869
  • 15
  • 60
  • 87
0
votes
1 answer

Dotnet watcher - Illegal characters in path -- what could cause this error?

Can anyone help us understand why dotnet watch is causing our applications to crash? I'm using dotnet new mvc and yo aspnetcore-spa to create apps in visual studio code. Both work fine until I try to add a reference to DotNet Watcher tools using…
bobbyK12
  • 179
  • 1
  • 1
  • 11