Understanding project references

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

Understanding project references
 
Mike VE




Posts: 168
Joined: 2007-09-09
I have been having trouble with an add-in being marked as Inactive on some customers' machines.
During the course of tidying up my add-in project's references I noticed something I do not understand.
I added a reference to Outlook from ADX Redistributables\Interop Assemblies\Office 2003. This shows up in the References list as Version 11 as expected but in the Project.vbproj file it is listed as Version 14, see below.

================================
<Reference Include="Microsoft.Office.Interop.Outlook, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\..\..\..\Program Files (x86)\Add-in Express\Add-in Express for .NET\Redistributables\Interop Assemblies\Office 2003\Microsoft.Office.Interop.Outlook.dll</HintPath>
</Reference>
================================

On my dev machine I am running Office 15.
So why is there a reference to Office 14 rather than 11 or even 15? It seems very odd. Could this be the cause of my Inactive problem?
Posted 17 Oct, 2014 03:49:26 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Mike,

Do you have any problems compiling the project?
Posted 17 Oct, 2014 07:11:13 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Yes. Strangely enough just this morning, since I "cleaned up" the references every time I build the solution MS installer fires up and tries to "Reconfigure" visual studio pro 2013. It then hits an error and exits. I have not had time to investigate this yet.
Posted 17 Oct, 2014 07:21:58 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Mike, I meant the compilation errors when you rebuild your solution (the add-in project + setup project). If you get any errors, please send me a screenshot or just the error message.
Posted 17 Oct, 2014 07:44:50 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Yes. When I build the solution it runs fine until just after Pre-build events have finished.
Then the installer kicks in an then it hits an error. Screen shot below.

User added an image
Posted 17 Oct, 2014 08:54:22 Top
Mike VE




Posts: 168
Joined: 2007-09-09
I forgot to say that once the I click OK and the messages clear the solution appears to finish compiling OK.
Posted 17 Oct, 2014 09:01:11 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Mike,

Looks like Visual Studio is not installed properly. Please try to uninstall Visual Studio completely and then install it again. Don't forget to check new updates in Windows Updates dialog. Let me know if the issue still exists.
Posted 17 Oct, 2014 09:17:45 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
By the way, do run Visual Studio via the 'Run As Administrator' option?
Posted 17 Oct, 2014 09:18:49 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Yes I did run as Admin. I just opened the same add-in project in Visual Studio 2010 and tried to build it there. I get exactly the same message. It tires to reconfigure VS 2013! What in the project could be specific to VS2013?
Posted 17 Oct, 2014 12:12:58 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Mike,

I am not sure that the msi dialog is related to the project settings. Is it reproducible with a new add-in project or a Class Library project?
Posted 20 Oct, 2014 06:29:21 Top