EmptyVB_Lib Sample: Visual Studio 2005 and VSTA v 2


posted by Melody
01-15-2008

Downloads: 126
File size: 120.9kB
Views: 309
EmptyVB_Lib Sample: Visual Studio 2005 and VSTA v 2
This sample demonstrates how to use an empty VB.Net library as a host for VSTA v 2 (Feb 2008 release ) using Visual Studio 2005.

This sample was created to address the following forum thread:  http://www.summsoft.com/forums/1/821/ShowThread.aspx

The sample add-in and projects based off the included templates are not intended to run becuase they do not have an .exe associated with them to load them or run.


To use this sample, extract the files to "C:\VSTA\Summit Software\Samples".  
    If you use a different location you must update the VSTAHostConfig v 2.reg file.

Open and build the project.
    The post build events will get the EmptyVB_LibProxy into the GAC and pipeline.
    
Run the registration file, VSTAHostConfig v 2.reg, by double clicking it.
    This will get the necessary information in the registry.
    
Open a command prompt, change directories to use the VSTA v 2 vsta.exe file and run setup for EmptyVB_Lib.
    If VSTA v 2 is installed in the default location you may use the commands below.
    
    cd "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"
    vsta /hostID EmptyVB_Lib /setup

This should extract the included template which may now be accessed with the following command

    cd "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"
    vsta /hostID EmptyVB_Lib

Copyright Summit Software Company, 2008. All rights reserved.