question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem restoring basic .NET core xUnit project on OSX

See original GitHub issue

Steps to reproduce

Intall dotnet with the following commands (those are the official packages):

brew cask install dotnet
brew cask install dotnet-sdk

Create the project via CLI

dotnet new xunit -o xunit

Restore it

dotnet restore

Expected behavior

I am not sure what the result should be, I am new to .NET but I would assume something along the line of:

  Restoring packages for /Volumes/Projects/debo/dotnet/mvc/mvc.csproj...
  Lock file has not changed. Skipping lock file write. Path: /Volumes/Projects/debo/dotnet/mvc/obj/project.assets.json
  Restore completed in 1.01 sec for /Volumes/Projects/debo/dotnet/mvc/mvc.csproj.

  NuGet Config files used:
      /Users/debo/.nuget/NuGet/NuGet.Config

  Feeds used:
      https://api.nuget.org/v3/index.json

Actual behavior

The entire log here https://gist.github.com/debo/2fedc78c98907bd7541f74e89b81856b

Environment data

dotnet --info output: .NET Command Line Tools (1.0.1)

Product Information: Version: 1.0.1 Commit SHA-1 hash: 005db40cd1

Runtime Environment: OS Name: Mac OS X OS Version: 10.12 OS Platform: Darwin RID: osx.10.12-x64 Base Path: /usr/local/share/dotnet/sdk/1.0.1

To be noted that dotnet --version output 1.0.1 but dotnet output the following"

Microsoft .NET Core Shared Framework Host

  Version  : 1.1.0
  Build    : 928f77c4bc3f49d892459992fb6e1d5542cb5e86

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
livarcocccommented, Mar 20, 2017

I moved it already. Thanks.

0reactions
debocommented, Mar 20, 2017

@emgarten well yes, I mean, I guess the behaviour makes perfect sense considering I am basically duplicating a namespace

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started: .NET Core with command line > xUnit.net
Processing post-creation actions... Running 'dotnet restore' on ~/dev/MyFirstUnitTests/MyFirstUnitTests.csproj... Determining projects to restore... Restored ~/ ...
Read more >
xUnit test template fails while restoring on .NET Core 2.0
Create new solution .NET Core -> Test -> xUnit test project. 3. Restore packages on the solution. Expected output: restore works correctly.
Read more >
How do I get command dotnet to restore?
I am trying to create a web app using asp.net core in terminal on MacOS v10.14.5 using yeoman. ... To dotnet restore the...
Read more >
dotnet test command - .NET CLI
The test host and the unit test framework are packaged as NuGet packages and are restored as ordinary dependencies for the project.
Read more >
Problems with .NET unit testing
I tried creating a Fresh Unit Test project Using dotnet new xunit and wrote a simple unit test and the problem recurs. Pdb...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found