Problem restoring basic .NET core xUnit project on OSX
See original GitHub issueSteps 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:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I moved it already. Thanks.
@emgarten well yes, I mean, I guess the behaviour makes perfect sense considering I am basically duplicating a namespace