C
C#8mo ago
joren

❔ ✅ using Xunit; does not work in visual studio

As far as I was aware its shipped with .Net when u install C# development, but when I try to import it it does not work.
11 Replies
joren
joren8mo ago
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'Xunit' could not be found (are you missing a using directive or an assembly reference?)
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'Xunit' could not be found (are you missing a using directive or an assembly reference?)
joren
joren8mo ago
got one solution and two projects.
No description
Jimmacle
Jimmacle8mo ago
did you create your projects from an xUnit template?
joren
joren8mo ago
yes
Jimmacle
Jimmacle8mo ago
if you didn't then you will need to add the xunit packages yourself
joren
joren8mo ago
I can retry though give me a second @Jimmacle the application im going to unit test can just be a normal console application right?
SG97
SG978mo ago
shouldn't xunit be in the packages? under dependencies
joren
joren8mo ago
No description
joren
joren8mo ago
this one right? Ok it works now, I might've misclicked or something apologies for this stupidity
Jimmacle
Jimmacle8mo ago
could have been nuget packages didn't automatically restore or something
Accord
Accord8mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts