2

I'm trying to build an open source project in Sharpdevelop, but the tests don't compile as it references the Microsoft.VisualStudio.TestTools.UnitTesting namespace.

I don't have Visual Studio (not even the Express editions). Is there any way to compile this project without Visual Studio (and without changing the code to use NUnit)?

Iain Sproat
  • 5,210
  • 11
  • 48
  • 68
  • 1
    possible duplicate of [How do I use MSTest without Visual Studio?](http://stackoverflow.com/questions/261290/how-do-i-use-mstest-without-visual-studio) – Gishu Feb 10 '11 at 05:46
  • @Gishu yes, I saw that question but it deals with the GUI rather than trying to build it – Iain Sproat Feb 11 '11 at 09:26

1 Answers1

1

I would say no, because as you can see from the namespace, MS Test framework relies on Visual Studio.

Davide Piras
  • 43,984
  • 10
  • 98
  • 147
  • but is this particular namespace to be found in a standalone dll library which MS provides for download on MSDN? – Iain Sproat Feb 09 '11 at 11:04
  • 1
    No because MS wants you to buy Visual Studio. – Davide Piras Feb 09 '11 at 11:15
  • +1. Note that MSTest not really depends on Visual Studio, but it does depend on a few DLLs that only come with Visual Studio. You could copy those DLLs (and the MSTest.exe) and check them in in your own branch, but I'm not sure what the legal consequences are :-). It's best to switch to an open source testing framework such as NUnit. – Steven Feb 09 '11 at 11:29
  • 1
    I've found a few helpful links in response to another SO question http://stackoverflow.com/questions/261290/how-do-i-use-mstest-without-visual-studio – Iain Sproat Feb 09 '11 at 12:39