0

I have an c# application and I want to have 32 and 64 bit versions of it. I use InnoSetup to create installer and both 32 and 64 bit exes are in the same folder. In my project I need to reference dll which has 32 and 64 bit version and place it in separate output folders(x86/x64). Is it possible to make it using Visual Studio?

  • It is not obvious why you created two separate EXE files, your user has no real idea which one is "best". Having a dependency on an unmanaged DLL that demands a specific process bitness is however pretty common, simply tell the OS where to look for the file. https://stackoverflow.com/a/11936113/17034 Use a post-build event to create the subdirectories and copy the files. – Hans Passant Sep 04 '18 at 10:49

1 Answers1

-1

1.) Open "Configuration Manager":

Configuration Manager

2.) Create a new configuration by selecting "<New...>":

enter image description here

3.) Give it a name and copy settings from an existing configuration:

enter image description here

4.) Select the platform or add it ("<New...>")

enter image description here

5.) Copy settings from an existing platform:

enter image description here

Now you can change project settings for each confiuration, simply change the path in the "Build" tab.

Markus Dresch
  • 5,290
  • 3
  • 20
  • 40