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

How do you make .NET Core unit test projects work with an alternate intermediate output path?

After installing Visual Studio 2017 Community, I tried creating a .NET Core unit test project. With the default output paths things work fine. But changing the intermediate output path to anything other than .\obj results in the following…
C. Dragon 76
  • 9,882
  • 9
  • 34
  • 41
0
votes
0 answers

dotnet build does not see referenced project

Steps to reproduce Create net461 Core webproject referencing ClassLibrary of same 4.6.1 in VS2017. In lib define public class X { [Required] // using System.ComponentModel.DataAnnotations; public bool Q { get; set; } } In webapp use it:…
smg
  • 1,096
  • 2
  • 11
  • 27
0
votes
1 answer

Force project to be recompiled using dotnet build

Using dotnet build the project will not by recomplied if there are no changes: Project {project name} was previously compiled. Skipping compilation. Is it possible to force project to be recompiled? I have looked into command options, but haven't…
Set
  • 47,577
  • 22
  • 132
  • 150
0
votes
0 answers

How to Open .NET Core CLI Project in Visual Studio 2017

For one of my classes this semester, I am required to use .NET Core 1.1 and version 1.0.0-preview2-003177 of the CLI tools. How can I open such a project in Visual Studio 2017? I have found solutions that work for 1.0.0-preview4-004233, but I am not…
alexwho314
  • 29
  • 2
  • 9
0
votes
0 answers

Not able to create a NET Core 1.1 project when using the command DotNet New

I tried to create a new ASP.NET Core 1.1 project using: dotnet new However I got the following error: The specified framework 'Microsoft.NETCore.App', version '1.0.1' was not found. Check application dependencies and target a framework version…
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
0
votes
1 answer

What are the rules for expected values to the dotnet ef commands?

In an ASP.NET Core application with migrations, running update database gives the following output. It works, and the verbose output displays the default values for a variety of options. dotnet ef --verbose database update Setting the data…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
0
votes
2 answers

Unable to load sni.dll in azure Webjob

I have a .NET Core command line application which I have deployed as a webjob to Azure. When I try to access a database in the app I get the following error message: [10/05/2016 06:23:27 > 5c77b6: ERR ] Unhandled Exception:…
Alex
  • 642
  • 5
  • 16
0
votes
1 answer

donet pack in VS Team Services

I have a problem with my build configuration in VS Team Services. I try to mark my nuget packages with prerelease suffix. I have a Utility CommandLine step defined. Tool: dotnet Argument: pack $(build.sourcesdirectory)/..../project.json --no-build…
SharpNoiZy
  • 1,099
  • 2
  • 11
  • 22
0
votes
1 answer

StreamReader not accept string arguments?

Using the dotnet-cli (dotnet new, dotnet restore) with VScode, I made a new C# program. However, I can't seem to use the StreamReader properly. Here's the code. using System; using System.IO; namespace ConsoleApplication { public class Program …
0
votes
1 answer

Path based extensibility model not working with dotnet-cli on Mac

I tried creating a custom command that could be executed using dotnet driver. Followed the steps mentioned in the documentation. Created a command with the name dotnet-demo Added basic echo "Welcome to Custom Command" script inside the…
Swaminathan Vetri
  • 403
  • 1
  • 4
  • 11
0
votes
1 answer

How to troubleshoot object reference exception after upgrading dotnet core to 1.0.0-preview2-003121

After upgrading to netcoreapp1.0 I'm not able to run my project. I've resolved all errors and fixes for the update, restored packages and get no errors anywhere. (I followed this guide for upgrading…
Jonas Stensved
  • 14,378
  • 5
  • 51
  • 80
0
votes
1 answer

dotnet ef --update-database "Microsoft.DotNet.Cli.Utils.dll" exception

I got this exception: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.DotNet.Cli.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. …
Skorunka František
  • 5,102
  • 7
  • 44
  • 69
0
votes
1 answer

Running Nancy FX out of the box with aspnet generator

I'm so excited to code dotNet on my mac. Im facing issues with the aspnet nancy yeoman generator i can restore but when i try to build the project it says. Project api (DNX,Version=v4.5.1) will be compiled because expected outputs are…
0
votes
1 answer

DotNet CLI tools fail using the full framework

I am porting a ASP.NET Core DNX command line tool from RC1 to RC2 with dotnet. It uses the full framework 4.5.1. I have stripped it down to a very simple project. My suspicion is that I am missing something basic, but I can't seem to find parallel…
EricksonG
  • 472
  • 4
  • 10
0
votes
0 answers

How to add a reference to a project in dotnet/cli (rc2)?

I have created a Web API dotnet core project and i would like to use an older C# library (.NET Framework 4.5) My project.json looks like ... "frameworks": { "netcoreapp1.0": { "imports": [ "net451", //"dotnet5.6", …
Juri
  • 1,531
  • 2
  • 20
  • 43
1 2 3
31
32