J
Jason Newell
I asked this question on CodeProject back in August 2009 but didn't get
any answer so I thought I'd try here. Here is a copy of my original
question.
All,
I have a C++/CLI assembly that is compiled for x64 and x86. These files
get installed in C:\Program Files and Program Files (x86) respectively
on 64 bit machines via a Visual Studio .NET 2008 setup project. I also
need these two assemblies to be installed into the GAC so that other
managed apps compiled as "Any CPU" will correctly load the right .dll. I
can manually install these two assemblies into the GAC using "gacutil
/i" but I'm having trouble figuring out how to set this up in a setup
project in VS.NET 2008.
The setup project property "TargetPlatform" is configured for "x64".
The setup project File System looks like this:
Global Assembly Cache Folder\Managed.dll /* (x64) */
Global Assembly Cache Folder\Managed.dll /* (x86) */
Program Files (64-bit) Folder\{AppName}\Managed.dll /* (x64) */
Program Files Folder\{AppName}\Managed.dll /* (x86) */
Upon building the project, I get 2 warnings:
WARNING: Two or more objects have the same target location
('[gac]Managed\2.0.0.0_487e2f56c7456732\Managed.dll')
WARNING: Two or more objects have the same target location
('[gac]Managed\2.0.0.0_487e2f56c7456732\Managed.dll')
I'm suspecting that VS.NET 2008 won't support what I'm trying to
accomplish but I wanted to do a sanity check with you guys first. If it
is ineeded the case, does anyone have alternative approaches or
installers that I can look into.
Thanks so much!
Jason Newell
www.jasonnewell.net
any answer so I thought I'd try here. Here is a copy of my original
question.
All,
I have a C++/CLI assembly that is compiled for x64 and x86. These files
get installed in C:\Program Files and Program Files (x86) respectively
on 64 bit machines via a Visual Studio .NET 2008 setup project. I also
need these two assemblies to be installed into the GAC so that other
managed apps compiled as "Any CPU" will correctly load the right .dll. I
can manually install these two assemblies into the GAC using "gacutil
/i" but I'm having trouble figuring out how to set this up in a setup
project in VS.NET 2008.
The setup project property "TargetPlatform" is configured for "x64".
The setup project File System looks like this:
Global Assembly Cache Folder\Managed.dll /* (x64) */
Global Assembly Cache Folder\Managed.dll /* (x86) */
Program Files (64-bit) Folder\{AppName}\Managed.dll /* (x64) */
Program Files Folder\{AppName}\Managed.dll /* (x86) */
Upon building the project, I get 2 warnings:
WARNING: Two or more objects have the same target location
('[gac]Managed\2.0.0.0_487e2f56c7456732\Managed.dll')
WARNING: Two or more objects have the same target location
('[gac]Managed\2.0.0.0_487e2f56c7456732\Managed.dll')
I'm suspecting that VS.NET 2008 won't support what I'm trying to
accomplish but I wanted to do a sanity check with you guys first. If it
is ineeded the case, does anyone have alternative approaches or
installers that I can look into.
Thanks so much!
Jason Newell
www.jasonnewell.net