Building Setup on 64-bit VS2010

Add-in Express™ Support Service
That's what is more important than anything else

Building Setup on 64-bit VS2010
Errors because TARGETDIR is pointing in wrong place. 
Garry Lowther




Posts: 54
Joined: 2009-02-22
I am testing building Office Add-In's using AIE 2010 using Visual Studio 2010 on a 64-bit Windows 7 PC. I am able to build the project, but the setup project is failing as follows:

------ Rebuild All started: Project: TriSys Office Add-In, Configuration: Debug Any CPU ------
TriSys Office Add-In -> C:\Development\TriSys Office Add-In\TriSys Office Add-In\bin\Debug\TriSysOfficeAddIn.dll
------ Starting pre-build validation for project 'TriSys Office Add-InSetup [Default]' ------
ERROR: Unable to find source file 'C:\Program Files\Add-in Express\Add-in Express for .NET\Redistributables\adxregistrator.exe' for file 'adxregistrator.exe', located in '[TARGETDIR]', the file may be absent or locked.
ERROR: Unable to find source file 'C:\Program Files\Add-in Express\Add-in Express for .NET\Bin\Extensibility.dll' for assembly 'Extensibility.dll', located in '[TARGETDIR]'
------ Pre-build validation for project 'TriSys Office Add-InSetup [Default]' completed ------
------ Rebuild All started: Project: TriSys Office Add-InSetup [Default], Configuration: Debug ------
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

It is due to the TARGETDIR is pointing at the wrong place as it is 'C:\Program Files (x86) on Windows 64-bit.

I was unable to find where TARGETDIR is set but did find a reference to it being used in the .VDPROJ file.
Posted 13 Sep, 2010 08:13:11 Top
Eugene Astafiev


Guest


Hi Garry,

It looks like you need to correct the path to the Redistributables folder for the 64 bit Windows 7 PC.

BTW The TARGETDIR is a macro. Please read more about it http://msdn.microsoft.com/en-us/library/c02as0cs%28VS.71%29.aspx.
Posted 13 Sep, 2010 08:31:59 Top
Garry Lowther




Posts: 54
Joined: 2009-02-22
Thanks for this link, but exactly where can I find these settings in VS2010 - that article does not say where to find these settings.
Posted 13 Sep, 2010 10:00:07 Top
Eugene Astafiev


Guest


Hi Garry,

You will not find these settings in Visual Studio. Please read more in http://msdn.microsoft.com/en-us/library/aa372064%28VS.85%29.aspx.
Posted 13 Sep, 2010 10:10:14 Top