Using:
* Windows 7 (32- and 64-bit)
* Visual Studio 2010 SP1
* Ice 3.4.2 from the official installer
The IceBox assembly cannot be added to a C# project via the "Add Reference" dialog in Visual Studio, but all other Ice assemblies can. With the default dialog it doesn't appear at all in the .NET assemblies list, and with the enhanced dialog from Productivity Power Tools it appears but it is reported as being incompatible with the target .NET framework version, regardless of what that is.
Trying to add the DLL file directly produces the same error as above. Editing the project file XML to add the strong-named assembly reference then reloading the project results in an unresolved reference.
However, I have discovered that if icebox.exe, which is in the same directory as IceBox.dll, is moved, renamed or replaced with one I built from source then the strong-named assembly reference will work. It appears that icebox.exe masks IceBox.dll.
The "Ice Configuration" dialog from the Visual Studio add-in can add IceBox as a file reference, but that isn't valid if Ice is installed in different locations on different build machines (e.g. 32-bit versus 64-bit).

Reply With Quote
