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
1 answer

how to call Package Manager Console and execute Find-Package in visual studio extension

I'm developing a visual studio extension(vsix). Now, I want to get a nuget package latest version. I only found one way by using Package Manager Console, dotnet CLI still not support search command. So, how can I call Package Manager Console and…
0
votes
1 answer

Publishing ASP.NET Core WebApp

I have a WebApp built using ASP.NET 2.2 and using TeamCity to deploy it. My build steps are as follow When I check the publish directory I can see that the wwwroot folder is missing. For my own sanity I did a dotnet build and dotnet publish (Visual…
Ayman
  • 1,387
  • 4
  • 20
  • 35
0
votes
1 answer

Windows 10 Iot raspberry add dotnet app to apps

Hello I have a raspberry pi with Windows 10 Iot installed. I have published a dotnet core app with visual studio. I can execute this with cmd /K myapp.exe over ssh. How can I add this app to Windows Device Portal to run it from there? I found the…
otto
  • 1,815
  • 7
  • 37
  • 63
0
votes
1 answer

Authentication issues when pushing packages to internal Azure Dev Ops package feed

I am having trouble figuring out how to authenticate and push packages to the private Azure Dev Ops - Artifacts feed. I have a hunch that this is what I am looking for but not too sure how it is used exactly when using dotnet nuget push. The…
Lutando
  • 4,909
  • 23
  • 42
0
votes
1 answer

EF Core 2.2 scaffold existing database - is there a way to filter out tables from the model

I know there is a -Tables parameter to include only those in a list, but is there a way instead to have a filter of some sort to exclude those tables from the model?
bitshift
  • 6,026
  • 11
  • 44
  • 108
0
votes
1 answer

Publish azure webjob from dotnet cli

I am trying to publish an azure webjob from the command line but it does not actually deploy to azure. I am able to successfully publish using Visual Studio 2019 using the Publish... option. VS2019 builds, publishes and deploys. My command line…
user1282345
  • 251
  • 3
  • 6
0
votes
1 answer

dotnet SDK 2.2.104 don't compile .NET Core 2.2

I have a .NET Sdk version 2.1 and lower. I installed sdk2.2 and sdk3. I removed sdk3 Now, the VS17 build and test my solution successfully. But from the command line, with dotnet-cli, I can't compile the solution, because he says he is…
baruchiro
  • 5,088
  • 5
  • 44
  • 66
0
votes
2 answers

Can't add IdentityServer4 NuGet package to ASP.NET Core project properly and VS Code is not showing intellisense

I've added IdentityServer4 NuGet package to ASP.NET core project using dotnet cli. Then written the following code on Startup class. public void ConfigureServices(IServiceCollection services) { services.AddIdentityServer() …
Towhid
  • 1,920
  • 3
  • 36
  • 57
0
votes
1 answer

Unable to build a solution which contains .Net Core and SQL projects

One of my client have a solution which contains 4 dotnet core projects and 1 sql project in a single solution. I tried to build the solution with dotnet core, but it is not able to find the sql project related target files and the build got…
0
votes
0 answers

Opt in for preview SDKs

I started playing around the the preview bits of the .NET 3.0 SDK. Now every .NET Core project I compile with VS Code, Visual Studio or the .NET CLI tries to use that preview version of the SDK. How can I make this an opt in choice on my whole…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
0
votes
1 answer

Overriding nuget package name when using "nuget pack" with a visual studio project

I am currently generating nuget packages by passing in a csproj file instead of a nuspec file. The problem is that I need to change the name of the nuget package to avoid conflicts with another project. This is the command I'm running: "C:\Program…
Josh Mouch
  • 3,480
  • 1
  • 37
  • 34
0
votes
1 answer

How to force `dotnet` CLI to return non zero exit code?

I run dotnet from powershell script, and when I specify some unknown switch powershell does not detect any error. And output goes to stdout whereas I'd expect it to be stderr. Is it a setting on dotnet or powershell side? I need script to fail in…
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
0
votes
1 answer

How to use existing dotnet-cli commands inside of custom dotnet global tool

I am creating my own global tool and I'm wondering what is the best practice or, better to say, the best way to use existing .Net CLI commands - for example, dotnet new sln... inside my own global tool project? Also, is this the way to go when you…
0
votes
1 answer

Adding references on Visual Studio Code from VSTS

I've got a private package stored on a feed in VSTS (Visual Studio Team Services). I want add it on a .NET Core project that I'm developing in Visual Studio Code. Checking VSTS documentation, to add a package from private source it's necessary use…
JorgeAM
  • 91
  • 2
  • 10
0
votes
0 answers

dotnet cli throwing error because of missing one dll

I have recently installed .Net core 2.0 in my windows 7 system. But, while running dotnet command on command prompt i am getting error same as in attached snap. Please let me know if any of you have faced this issue. Thanks in Advance, Vivek