It's Spann, not spam

Technical blog to provide content that developers find useful.

VSTS 2008 Database Edition Error Creating Unit Tests

VSTS 2008 Database Edition Error Creating Unit Tests

  • Comments 1

I ran into an issue using Visual Studio Team System 2008 Database Edition with the Power Tools installed.  When using the Schema view inside a database project:

  1. Right click on a Stored Procedure. 
  2. Select "Create Unit Tests"
  3. Answer the questions in the wizard. 
  4. The wizard will create the C#/VB file but does not create the .resx file for the class.

Instead you will receive the following error message.

dbpro_error

So, you are asking - "How do I get around this issue?"  Well you have a few choices.

  1. Temporarily disable the new test conditions from the power tools extensions file and then removing the reference to the PowerTools.dll.
  2. You can disable them by editing the %ProgramFiles%\Microsoft Visual Studio 9.0\DBPro\Microsoft.VisualStudio.TeamSystem.Data.PowerTools.Extensions.xml file, remove the highlighted lines.

    image

  3. Do not use the "create unit test" dialog and manually add tests using the "add new test" dialog in the test project.
  4. Uninstall the power tools and wait for the re-release of the power tools.

 

Page 1 of 1 (1 items)
Leave a Comment
  • Please add 6 and 2 and type the answer here:
  • Post