While using xunit for testing, I'm constantly getting build errors when running the tests (CS0579 and CS0006):
I have tried removing bin/obj folders and tried suppressing the generation of the attribute with <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> but both were causing other issues (source: https://github.com/dotnet/cli/issues/4710).
Soluction structure:
I had to manually add references to xunit.core.dll and xunit.assert.dll.
Does anyone have any experience in resolving this issue? I'm additionally having problems testing methods that throw exceptions (see Exception not being thrown in setter) and I suspect this might be a symptom of the root cause.