chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I have set up a handful of tests using Isolater and they work as expected on my computer.

Now I am attempting to set up the Build Server to run the tests. Currently I am getting the following error:

error CS0246: The type or namespace name 'TypeMock' could not be found (are you missing a using directive or an assembly reference?) [d:uildsEconometrixDevSourcesTestTest.csproj]

I had assumed that the project would have used GAC to get the references but it appears that is incorrect. I am using MSTest and TFS Build.

Is there documentation somewhere that I have not seen yet on how to configure the Build Server version to work correctly? I have seen the documentation on the auto deploy scenario, but that looks like it is for teams that need to use different versions of Isolator for various projects. That doesn't apply to me.

Thanks in advance
asked by cschnepf (640 points)

3 Answers

0 votes
Hi,

Your assumption was correct...

Please try to open your solution locally on the server, and see if the references are broken.

_________________
Yonatan
Typemock Support
answered by yonatan (1.6k points)
0 votes
The references on the build server having the warning icon for when the references cannot be found.

I opened the Add Reference dialog on the build server and went to the .NET tab and Typemock is not listed.

Some background information that might help:

All of the dev machines are 64 bit so the typical installation directory for typemock is C:Program Files (x86)TypemockIsolator.1. We are using the TypeMock and Typemock.ArrangeActAssert references from the .NET tab.

The build server is 32 bit so the installation directory there is C:Program FilesTypemockIsolator.1
answered by cschnepf (640 points)
0 votes
Hi,

The solution in this case is to copy the installation folder of the Isolator to the project tree and use [url=http://docs.typemock.com/Isolator/##typemock.chm/Documentation/InstallingAutoDeploy.html]auto deploy feature[/url] to run the tests.
The references on all machines should point to the Isolator folder under the project tree.
:arrow: Note that the GAC is needed only for runtime. The references needs to be correct for compile time.
answered by ohad (35.5k points)
...