我剛剛通過nuget安裝了'specflow.nunit'包,但包含規格的項目想要編譯了,因爲添加到項目中的SpecFlowNUnitExtension
類是缺少對nunit.core的引用(更具體地說,不能找到'NUnit.Core'和'NUnit.Core.Extensibility'命名空間)。其他人有同樣的問題?你有沒有設法解決它?SpecFlow.NUnit via Nuget:Missing reference to nunit.core
11
A
回答
29
我通過安裝NUnitTestAdapter NuGet包固定它。
4
Okei,似乎我找到了解決它;需要的DLL可以從http://www.nunit.org/index.php?p=download下載。下載「bin'版本,將壓縮文件解壓,文件夾內的‘LIB’有多數民衆贊成由SpecFlowNUnitExtension需要2個組件: - nunit.core.dll程序 - nunit.core.interfaces.dll
添加對這兩個DLL和項目編譯的引用。
(有點笨拙雖然;不應這些組件與specflow.nunit包捆綁?)
相關問題
- 1. 「Undefined reference to _ms_vsnprintf」
- 2. 「undefined reference to`_head_libpython27_a'」
- 3. Jackson:Object to String via writeValueAsString:NPE
- 4. Error undefined reference to library
- 5. GStreamer「undefined reference to'__srget'」
- 6. asp dropdownlist via databinding to vb.net arraylist
- 7. mp3 to wav on linux via PHP
- 8. Javascript date to C#via Ajax
- 9. C#float [] to java float [] via socket
- 10. Tweet to twitter user via href
- 11. libQt5Core.so:undefined reference to `[email protected]_1.3.8
- 12. glfw + codeblocks + undefined reference to`__gxx_personality_sj0'
- 13. OpenCV 2.4:undefined reference to cvRand
- 14. Visual Studio 15 Android「error:undefined reference to」
- 15. nameless char [] to std :: string&reference
- 16. cuda undefined reference to __constant__ array
- 17. Nunit.core和Nunit.util從V3
- 18. bluetooth device to windows API via com port
- 19. DropDownListFor via via ViewBag
- 20. 鏈接時間「undefined reference to」錯誤
- 21. SystemC驗證構建錯誤'undefined reference to ..'
- 22. LINQ to Entities - Multiple Joins - Null Reference Exception on'Select'
- 23. python「reference to」vs「copy of」字典項目
- 24. Retrofit/Sphere Engine API錯誤:undefined reference to`main'
- 25. 「undefined reference to strerror_r」with OpenSSL-1.1.0e和MinGW
- 26. Javascript string to object reference(without eval()or indexes)
- 27. gcc鏈接器錯誤:undefined reference to __security_cookie
- 28. C++:packaged_task via promises
- 29. Admob RewardedVideo via Firebase
- 30. has_many:through via secondary polymorphism
這對我有效 –
相同,我相信這是更好的答案 – Maciek
也設置nunit.core.interfaces程序集的「Copy Local」屬性爲True。 –