This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Guys, I thought I'd check out the Create Unit Test Wizard in VS 2008 (Add New Test --> Unit Test Wizard), but when I go to select anything in the project I get a message box pop up, with the message "The following error was encountered while reading module Mindscape.Lightspeed : Invalid Meta Data Exception. Assembly Reference not resolved ; Lucence.Net, Version 2.0.0.4, Culture Neutral, Public Key Token = 3b6dce78d3f9097a" I see from a previous post by bflecht that they had a similar problem with FXCop and it was due to using a local copy of the Mindscape dll, which I am doing too. Any idea if there is a setting that I set somewhere to get round this or do I have to copy the Lucene.Net assembly locally too and if so, where is it ?? |
|
|
I don't know the VS wizard well enough to know if there is a way to tell it "ignore the exception, it doesn't matter," but failing that there are a couple of options: 1. Copy the various assemblies that LightSpeed links to into your Lib directory. You can find these under the Providers directory in your installation folder. 2. Create an empty test class file and write unit tests in that just as you would write methods in your own classes. I realise you are not too familiar with the VS test framework at the moment, so for the time being it probably makes sense to lean on the wizard while you get your bearings. But once you've seen a couple of generated test classes you may find you prefer this approach -- from what I remember I always ended up deleting most of the VS-generated stuff anyway! |
|
|
I googled around a bit, and I couldn't find a setting to tell it it doesn't matter. I tried copying Lucence.Net.dll to the bin directory, which didn't work and even copied the whole Providers direcory which didn't work either.I then changed the reference to Mindscape.Lightspeed.dll and Mindscape.Lightspeed.Linq.dll back to the install directory (C:\Program Files\Mindscape\LightSpeed 2.2\Bin) and rebuilt , but the same error appears. I was just interested in what the wizard would generate, and thought it would save a wee bit of time, but I guess I'll continue doing them manually ! |
|