none
VSTO .net framework version help RRS feed

  • Question

  • I am deploying a VSTO Outlook 2003 Add-in using Visual Studio 2008 and a 'Setup Project' installer.

    I want to make this Add-in as light-weight as possible, so am trying to install as few prerequisites on the users' computers as possible.

    It is my understanding that with Office 2003 and Visual Studio 2008, it is possible to target the .net framework version 2. I have attempted to do this by setting the project 'Target Framework' to 2.0 and only selected the .net framework version 2 in the prerequisites for the installer.

    When I attempt to install my add-in however, after installing .net framework version 2, the following message is displayed:
    "This setup requires the .NET Framework version 3.5. Please install the .NET framework and run this setup again..."

    So firstly, am I right in my assumption that I should be able to deploy as a .net framework v2 application?

    And secondly, can anyone give me some pointers?

    My full list of installer prerequisites is as follows:
    .NET Framework 2.0 (86)
    Windows installer 3.1
    Microsoft Office 2003 Primary Interop Assemblies
    Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime

    Many thanks for any help you can give!

    Wednesday, June 13, 2012 10:48 AM

Answers

  • could you also check Launch conditions Editor in setup project? maybe there hides this requirement.
    • Marked as answer by Dave_JB Wednesday, June 13, 2012 3:03 PM
    Wednesday, June 13, 2012 1:36 PM

All replies

  • show screenshot of add-in project -> properties, Application tab in VS
    Wednesday, June 13, 2012 11:33 AM
  • Nice one, here you go:

    Thanks!

    Wednesday, June 13, 2012 12:21 PM
  • ok, now show us screenshot of setup project's prerequisites window.
    Wednesday, June 13, 2012 1:15 PM
  • OK, not all the prerequisistes fit into one shot so have done 3:

    Wednesday, June 13, 2012 1:25 PM
  • Wednesday, June 13, 2012 1:25 PM
  • could you also check Launch conditions Editor in setup project? maybe there hides this requirement.
    • Marked as answer by Dave_JB Wednesday, June 13, 2012 3:03 PM
    Wednesday, June 13, 2012 1:36 PM
  • There's the problem. I followed a step-by-step guide a while ago create this project, I forgot I had set such a condition.

    How do you know what is a valid version number for the .net framework you are targeting?

    According to msdn, the launch condition cannot just be set to v2.0.0 for example, but 2.0.50727 is ok...

    Wednesday, June 13, 2012 2:06 PM
  • i would remove it completly since you already have bootstrapper exe generated in msi project that will take care or checking and installing it.
    Wednesday, June 13, 2012 2:32 PM
  • 2.0.50727 would be the correct setting for Framework 2.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Dave_JB" <=?utf-8?B?RGF2ZV9KQg==?=> wrote in message news:87af1ba2-0f7a-4ff9-81fa-6a41062630d5...

    There's the problem. I followed a step-by-step guide a while ago create this project, I forgot I had set such a condition.

    How do you know what is a valid version number for the .net framework you are targeting?

    According to msdn, the launch condition cannot just be set to v2.0.0 for example, but 2.0.50727 is ok...


    Ken Slovak MVP - Outlook
    Wednesday, June 13, 2012 2:38 PM
  • Ah ok, thank you both, Ken and Damian. I've got it working ok, my last question was more for reference purposes really, since there seems to be no logical connection that .net v2 = 2.0.50727 and v3 = 3.0.5777 or whatever it is for version 3.

    Just wondered if there was a resource that said, v2 = x, v3 = y v3.5 = z etc. I couldnt find one on msdn

    Thanks

    Wednesday, June 13, 2012 3:21 PM