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
5
votes
3 answers

ToastContentBuilder' does not contain a definition for 'Show'

I am newbie c# , my first try on Visual Studio Code is to show notification on windows 10 using ToastContentBuilder from Namespace Microsoft.Toolkit.Uwp.Notifications here is my code : using Microsoft.Toolkit.Uwp.Notifications; namespace cs { class…
5
votes
0 answers

dotnet publish: clean external output directory

I would like to clean my external output folder before publish. The solution I have today is the following: Remove-Item -Path ..\artifacts -ErrorAction SilentlyContinue -Recurse -Force; dotnet publish ..\myproject.sln -c Release -o…
Pedro Perez
  • 842
  • 6
  • 23
5
votes
2 answers

How to dotnet build by wildcard pattern

I have .sln file which contains some projects in different folders, initially in root folder I have src and Tests folders and sln file. The structure is depicted on image below: When I run dotnet build it builds all the projects. Another way is to…
vkolesnik
  • 367
  • 2
  • 13
5
votes
0 answers

dotnet publish not creating a runtimes directory

Trying to publish a console app to run on a linux machine, I publish like this dotnet publish -c Release -r linux-x64 I try to run the app and get this error An assembly specified in the application dependencies manifest (XXX.deps.json) was not…
5
votes
1 answer

How to correctly publish with dotnet cli to MyGet with SymbolSource (nupkg + snupkg unified publishing)

I've tried every imaginable combination of the example commands in the official docs, but these are all using nuget.exe. The following nuget issue states that publishing with the dotnet cli to the offical nuget.org v3 endpoint…
Stefan Anghel
  • 194
  • 3
  • 15
5
votes
1 answer

dotnet publish and deploy with ftp Github Actions

I am trying to set up Github Actions to: -build .net Core app -test the app (unit tests) -make a release (dotnet publish) -deploy to ftp server I am having some issues with the last step. I am using this action to deploy to ftp:…
Anders Tofte
  • 51
  • 1
  • 4
5
votes
1 answer

How do I stop dotnet pack building the project in azure devops (--no-build doesnt have an effect)

I am having issues creating a nuget package from a project in azure devops, The project is .net standard 2.0 targeting netstandard2.0 and netcoreapp2.0. I have a separate build and release pipelines. The build pipeline builds & tests the…
5
votes
2 answers

How to use `dotnet new` template in visual studio 2019?

I installed Visual Studio 2019 GA Released version today. I installed this template https://github.com/Dotnet-Boxed/Templates via dotnet new command line I then can use the dotnet new to create a project from command line. However, the installed…
LxL
  • 1,878
  • 2
  • 20
  • 39
5
votes
0 answers

How to publish multiple runtimes with dotnet cli to custom output folders

I have a csproj file which contains a few target runtimes, and I was hoping to have a singular command I could run which would build them all and put them in a designated directory. Something like this: dotnet publish -c release -o…
Grofit
  • 17,693
  • 24
  • 96
  • 176
5
votes
0 answers

Launch .NET Core project in VS Code using dotnet run

We have a .net core 2.0 project that we've been using in Visual Studio. I want to switch to using VS Code. I updated the launchsettings.json to include a Project launch profile (instead of IIS) and made the necessary changes to be able to use the…
Duke Cyrillus
  • 1,217
  • 2
  • 14
  • 29
5
votes
4 answers

mac/linux `dotnet build` The reference assemblies for framework ".NETFramework.." were not found

When trying to build Microsoft.NET.Sdk style project that targets net47 rather than .netcore or .net std. The dotnet build will give an error about missing targeting pack. msbuild will work instead, but i'd prefer to use dotnet build. Is there a…
jbtule
  • 31,383
  • 12
  • 95
  • 128
5
votes
3 answers

How can I change the default build output directory in Visual Studio Code

I'm new to Visual Studio Code. I want to define the output directory in my csproj. I don't know where to change in Visual Studio Code the destination folder to locate the dll files generated.
Eduardo Slee
  • 63
  • 1
  • 1
  • 3
5
votes
3 answers

Writing tasks using dotnet cli

My .net core application is getting amazing, and all the bros want to use it. I need to give them a fail safe way to get the project running, as well as a strategy for adding publish tasks down the road. Right now, thanks to help I received in this…
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
5
votes
2 answers

Dotnet test on .NET Core 1.1 in VSTS: No Test Discoverer is Registered

I'm using VS 2017 with the new csproj in a .NET Standard class library, trying to test the library with a .NET Core 1.1 test project using MSTest testing framework with the dotnet test command. Running locally works perfectly fine; when I send the…
Dagrooms
  • 1,507
  • 2
  • 16
  • 42
5
votes
2 answers

Visual Studio 2017 (ASP.NET Core) and Aurelia (ES6) from scratch manually?

Is there a tutorial somewhere that shows you how to install & build Aurelia MANUALLY in Visual Studio 2017? Why do this? Ideally I'd like to use bundleconfig.json for as much as I can and use gulp for those things I can't do in…
Mike Becatti
  • 2,052
  • 1
  • 16
  • 32