platform target else dll not found

Platform Targets for Unit Test Projects apparently need to be set.

A Unit Test Project that runs fine locally with an x86 machine fails to on a 64 bit Build Machine with an error:

Ensure that the assembly XYZ is located in the application directory or in the Global Assembly Cache.

But its there. Whats missing is a <PlatformTarget>x86</PlatformTarget> tag in the Release / Debug configuration.

Just whip out the proj file and look for:

<PropertyGroup Condition=” ‘$(Configuration)|$(Platform)’ == ‘Release|AnyCPU’ “> (Or Debug) and add this.

Also, if this dll is not used directly in this project, a dummy unit test that explicitly calls some class in the referred dll will also help the UTF prepare a list of dlls needed.


Warning: count(): Parameter must be an array or an object that implements Countable in /home/cselian/public_html/blog/wp-includes/class-wp-comment-query.php on line 405

Leave a Comment