This project has moved and is read-only. For the latest updates, please go here.

Couple of deployment Question regarding (ANY CPU) & VC++ redistributables.

Sep 5, 2014 at 2:05 PM
I have used MagickImage.Net ANY CPU library to import JPEG Encoded Tiff images. Consider the below scenarios & Questions.

I have used MagickImage.Net ANY CPU library in a Class Library Project . The DLL of that Class Library Project Targeted as "ANY CPU" and referenced in MVC Web Application as well as Windows Application.

Couple of questions :
  1. On both 32 bit & 64 bit machine, when i import Jpeg Encoded Tiff images in MVC Web, it will add with out any error using Class Library Project in which magick DLL is referenced. Even if VC++ Redistributable not installed on 32 bit & 64 bit machine. Could you explain how it works without redistributables whereas in point 2 below it requires VC++ redistributables to be installed on client machine.
  2. The Same DLL is used in a windows application (32 bit application), When i import jpeg encoded tiff images, it will throw an error if VC++ redistributable is not installed. if i install VC++ redistributables (x86) on 32 bit machine it will then allow us to import the jpeg encoded tiff with out any error.
  3. If my targeted windows application is 32 bit, Can I only redistribute VC++ redistributable (x86) on both machine 32 bit & 64 bit machine.
  4. if my targeted windows application is 64 bit and library is ANY CPU then, i believe that; i need to install VC++ redistributables (x64) on client machine. Please confirm.
  5. Can i redistribute the VC++ Redistributables using merge modules.
Sep 5, 2014 at 5:35 PM
I am not sure why you keep calling this library MagickImage.Net but the name is Magick.NET. Here is an answer to your questions:
  1. That sounds impossible, can you double check this? Maybe your machine already had the VC++ Redistributable installed?
  2. What is your question? If it is if you really need the VC++ Redistributable then the answer is: yes always.
  3. Correct, the VC++ redistributable (x86) needs to be installed when you use the 32 bit version of Magick.NET.
  4. You should not use the AnyCPU version of Magick.NET when your application targets x64. You only need the AnyCPU version of Magick.NET when your application targets AnyCPU. When you do this you need to install the x64 and the x86 version of the VC++ Redistributables because the AnyCPU version of Magick.NET will use the x86 or the x64 version depending on the platform of your application pool.
  5. I don't have an answer to this question. You will have to figure that out yourself. If you do please reply to this topic so other users of Magick.NET will also get the information.
Sep 8, 2014 at 2:30 PM
Thanks for your response. Sorry about the name mixup. Due to Classes of Magick.NET. (i.e. MagickImage)

Let you know about the merge module related stuff.