[英]Is it possible to test .net framework project with xUnit .net core
I have aa asp.net framework 4.5.2 project, can I use xUnit with .net core 2.0 to test it? 我有一个asp.net framework 4.5.2项目,可以将xUnit与.net core 2.0一起使用进行测试吗?
If yes, is it recommended? 如果可以,建议吗?
if not, what alternatives I have? 如果没有,我有什么选择?
No, 没有,
If the application references things like "System.Windows.Forms" - the .netcore Unit Test project won't be able to load it. 如果应用程序引用“ System.Windows.Forms”之类的内容,则.netcore单元测试项目将无法加载该项目。
We just ran into this issue- and are converting our .netcore unit test project to match the .net 4.5.2 of our production assemblies. 我们刚遇到这个问题,并且正在转换.netcore单元测试项目以匹配我们的生产程序集的.net 4.5.2。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.