sdekock / AgUnit

Silverlight unit testing with ReSharper
http://agunit.codeplex.com/
Apache License 2.0
13 stars 13 forks source link

Chage StatLight reference to Ionic Zip Reduce to specific verision #10

Open archnaut opened 9 years ago

archnaut commented 9 years ago

We started seeing an unhandled StatLight exception when attempting to run unit tests after an update to one of our project's binary references.

It appears that version 1.9.1.8 of Ionic Zip Reduce which is included with ReShaper 8.2.2 was being loaded by the test runner. This version no longer contains an overload of the Read method on the ZipFile that takes a byte array.

I changed the StatLight Core reference to specifically verison 1.9.1.5 of the Ionic Zip Reduce and set it to copy to output. Copying the contents of the output folder to the AgUnit folder in ReSharper Plugins directory seems to resolve the issue. The unhandled exception is no longer being thrown and and Process Explorer show that the 1.9.1.5 version of the Ionic Zip Reduce is being loaded.

I cannot explain why the update to one of our binary dependencies caused the unhandled exception when previously everything had been working fine.

I look forward to your comments and or questions.

sdekock commented 9 years ago

This doesn't look right. Are you sure the hint paths in the AgUnit .csproj's are needed? Even then, these relative paths are depandant on where you checked it out.

The references should be already be picked up based on the reference path setting. This is always correct even if you install resharper on another drive:

$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\JetBrains\ReSharper\v8.2\vs11.0@InstallDir)

I'm probably not going to find the time to investigate this further. AgUnit is virtually dead (I'm not doing any Silverlight anymore). And the founder of StatLight (Jason Jarrett) already confirmed his project is dead too.

archnaut commented 9 years ago

Ok, thanks for the reply.

On Wed, Jul 22, 2015, 12:54 PM Steven De Kock notifications@github.com wrote:

This doesn't look right. Are you sure the hint paths in the AgUnit .csproj's are needed? Even then, these relative paths are depandant on where you checked it out.

The references should be already be picked up based on the reference path setting. This is always correct even if you install resharper on another drive:

$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\JetBrains\ReSharper\v8.2\vs11.0@InstallDir )

I'm probably not going to find the time to investigate this further. AgUnit is virtually dead (I'm not doing any Silverlight anymore). And the founder of StatLight (Jason Jarrett) already confirmed his project is dead too.

— Reply to this email directly or view it on GitHub https://github.com/sdekock/AgUnit/pull/10#issuecomment-123807962.