Results 1 to 3 of 3

Thread: Cannot add strong-named IceBox assembly reference to VS2010 C# projects

  1. #1
    paul mcalpine is offline Registered User
    Name: Paul McAlpine
    Organization: L-3 Communications Nautronix Limited
    Project: Maritime Domain Awareness
    Join Date
    May 2011
    Posts
    5

    Cannot add strong-named IceBox assembly reference to VS2010 C# projects

    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).

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Hi Paul,

    As you found this is caused by IceBox.dll and icebox.exe being in the same directory.

    The easy workaround is to move icebox.exe to other directory in your PATH.

    When you build from sources icebox.exe don't cause a conflict, as in that case icebox.exe has not digital signature and Visual Studio don't consider it as a possible strong name reference.


    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).
    That is because when Visual Studio found the possible conflict , it adds a HintPath, and that don't work well with Ice installed in different locations. Once you have moved icebox.exe to a different directory, adding IceBox dll will not require a HintPath, and will work well with Ice installed in different locations.

    We will make sure this get fixed with the next Ice release, let me know if you need further help with that.

  3. #3
    paul mcalpine is offline Registered User
    Name: Paul McAlpine
    Organization: L-3 Communications Nautronix Limited
    Project: Maritime Domain Awareness
    Join Date
    May 2011
    Posts
    5
    Thanks, I look forward to the next version.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-18-2011, 09:14 PM
  2. Replies: 0
    Last Post: 06-20-2011, 07:14 PM
  3. Visual studio add-in doesnt work somehow in vs2010
    By cloudwafancy in forum Help Center
    Replies: 2
    Last Post: 05-31-2011, 09:52 AM
  4. VS2010 add-in and perforce
    By Jimbarb in forum Help Center
    Replies: 29
    Last Post: 02-10-2011, 12:42 PM
  5. Debug named profiles
    By griffima in forum Help Center
    Replies: 7
    Last Post: 10-18-2004, 11:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •