docs icon indicating copy to clipboard operation
docs copied to clipboard

type or namespace Xunit not found

Open jpeg729 opened this issue 8 years ago • 6 comments

I'm running a fresh install of dotnet sdk 2.1.301 on ubuntu 18.04 I ran "dotnet new xunit" and got the test files described, however I am getting the error CS0246: The type or namespace name 'Xunit' could not be found (are you missing a using directive or an assembly reference?)

Any ideas?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

jpeg729 avatar Jul 04 '18 19:07 jpeg729

If I run "dotnet add package xUnit" in the root folder of my project, then it works.

jpeg729 avatar Jul 04 '18 19:07 jpeg729

I'm glad you found that answer @jpeg729

I've added this to our backlog and added the up-for-grabs label. If you want to submit a PR for this, let me know and I'll assign it to you.

BillWagner avatar Jul 12 '18 13:07 BillWagner

@BillWagner I ran into the same issue. I can fix it in the docs since it's still open.

garg000dhruv avatar Aug 25 '18 20:08 garg000dhruv

Still open @garg000dhruv. Feel free to submit a PR.

mairaw avatar Aug 26 '18 03:08 mairaw

Moving into the current sprint.

@garg000dhruv Will you have time to update PR #7296 or should we make those updates and merge the changes?

BillWagner avatar Nov 05 '18 15:11 BillWagner

Sorry, completely konked out on this one. I'll try to finish it up in a couple of days.

garg000dhruv avatar Nov 05 '18 15:11 garg000dhruv