How often do I need to register an add-in in Visual Studio?

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

How often do I need to register an add-in in Visual Studio?
I seem to need to re-register the add-in for every change in the code 
Mike VE




Posts: 168
Joined: 2007-09-09
I have recently started using Addin Express 8 and Visual Studio 2015 Community Edition. I regularly find that when I run the code it executes the previous build unless I use the Addin Express context menu to Register the add-in. In other words I seem to have to re-register the add-in for almost every change I make.

This is not the behaviour I remember from previous versions. Am I doing something wrong?
Posted 13 Nov, 2015 13:43:09 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Mike,

Is the add-in project the default project in the solution? Does any project in the solution references the add-in project?


Andrei Smolin
Add-in Express Team Leader
Posted 16 Nov, 2015 05:14:05 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Hi Andrei

Yes the Project is the Startup Project. There is another project containing utility classes. The main project references the Utils project. There are no references going the other way.

If I set a breakpoint, make a change to the code and start debugging the breakpoint symbol changes and mousing over gives the message "This breakpoint will not currently be hit. The source code is different from the original version."

Both projects have references to the Outlook PIA.

I have just a reference to Analyzers in both projects. It does not seem to have any properties. Perhaps it is something new in Visual Studio 2015.
Posted 16 Nov, 2015 05:41:43 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
I suppose your add-in is also installed. If so, uninstall it, then unregister the add-in project from the IDE, start the host application to check for any traces of your add-in,. Finally, you register it from the IDE.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Nov, 2015 05:46:43 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Hi Andrei

I uninstalled it - clicked the Remove button on the COM Add-ins dialog then registered it from the IDE.

No change - I still get the odd behaviour.

In order to investigate I tried an old project and it worked fine. That is, you could change the code and it ran the new code without re-registering. It was in VB.net and .NET 3.5 whereas the new project that has the problem is C# NET and NET 4.5.
Posted 16 Nov, 2015 11:21:49 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Mike,

Choose Tools | Options in the IDE. In the left pane choose "Build and Run" under "Projects and Solutions". In the right pane, check that you have "Always build" selected for the "On Run, when projects are out of date"


Andrei Smolin
Add-in Express Team Leader
Posted 17 Nov, 2015 05:51:37 Top
Mike VE




Posts: 168
Joined: 2007-09-09
I tried that but no change.
Posted 17 Nov, 2015 07:57:01 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Mike,

I would like to access your PC remotely. Is this possible? If yes, I suggest using TeamViewer; in this case you'll need to send me your session ID and password. Today I will be available till 18:45 my time.

Andrei Smolin
Add-in Express Team Leader
Posted 18 Nov, 2015 07:02:51 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Hi Andrei

Sorry for the delay. I thought I had sent you Team Viewer details last week but I now realise I had sent to the wrong address. Do you have any time today. If so I will send you new Team Viewer details.

Mike
Posted 25 Nov, 2015 05:49:59 Top