Visual Studio 2010-SQL Server 2008数据库项目处于非活动状态“创建单元测试"在架构视图中 [英] Visual Studio 2010 - SQL Server 2008 Database Project inactive "Create Unit Tests" in Schema View

查看:125
本文介绍了Visual Studio 2010-SQL Server 2008数据库项目处于非活动状态“创建单元测试"在架构视图中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想完成本教程: http://msdn.microsoft.com/pl-pl/library/gg314942 .这是关于在SQL Server数据库中测试存储过程,以及在Visual Studio 2010中的测试"项目中创建模板.这是用波兰语编写的.

I would like to complete this tutorial: http://msdn.microsoft.com/pl-pl/library/gg314942. It's about testing stored procedures in SQL Server Database and creating template in Test project in Visual studio 2010. It was written in Polish.

我没有看到创建单元测试"选项.在架构视图"中单击存储过程时,它处于非活动状态(不启用).我不知道为什么...?

I don't see option "Create Unit tests". It's inactive (not enable) when click on stored procedure in Schema View. I don't know why...?

我已经尝试过AdventureWorks和我自己的数据库.

I've tried with AdventureWorks and with my own Database.

有什么办法解决这个问题吗?

Any idea how to resolve this problem?

推荐答案

我不确定这篇文章,但您的问题可能是由于缺少参考.您是否创建了类型测试项目的项目.

I am not sure about the article but your problem might be becuase of missing references. Did you create a project of type test project.

请确保您的项目中具有以下引用:

Please make sure you have the following references in your project:

  • Microsoft.Data.Schema.UnitTesting
  • Microsoft.VisualStudio.QualityTools.UnitTestFramework

谢谢

Anuj


这篇关于Visual Studio 2010-SQL Server 2008数据库项目处于非活动状态“创建单元测试"在架构视图中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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