将C#库转换为MSTest项目 [英] Convert C# Library To MSTest Project

查看:53
本文介绍了将C#库转换为MSTest项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些带有NUnit测试的类库,并且我想将项目转换为使用VS 2008 MsTest集成.(右键单击添加测试等.)

I have some class libraries with NUnit tests, and I want to convert the project to use the VS 2008 MsTest integration. (Right click add test etc.)

是否存在简便的转换方法,还是需要手动编辑csproj.

Is there and easy way to convert or do I need to edit the csproj manually.

谢谢

推荐答案

将以下内容添加到csproj文件中的属性组中

Add the following to the property group in the csproj file

<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

这篇关于将C#库转换为MSTest项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆