After hearing about it on the latest .NET Rocks! podcast, I set out to try the new
VSTA SDK, and much to my surprise everything works up to one point: generating the project templates.I followed the instruction in the MSDN Library addition it installed, and came up with the following instructions for how (I thought) to get the most basic sample, ShapeAppCSharp, to function with VSTA:
(All paths/command-line commands are in bold, the .reg file is in italics. Copy them verbatim, quotes and all, and it will work fine.)
Install VSTA to default location(C:\Program Files\Visual Studio 2005 Tools for Applications SDK)
Start - >Run -> msiexec /i "D:\Program Files\Visual Studio 2005 Tools for Applications SDK\2007.02\VisualStudioToolsForApplications\SetupPackage\vsta_aide.msi" VSTAINVS=1
Extract: D:\Program Files\Visual Studio 2005 Tools for Applications SDK\2007.02\VisualStudioToolsForApplications\Samples\ShapeAppCSharp.zip to:
Add a new C# Class Library project to the solution named ShapeAppCSharpProxy
Add a new set of references to the new project (All under the “.NET” tab):
Navigate to D:\Program Files\Visual Studio 2005 Tools for Applications SDK\2007.02\VisualStudioToolsForApplications\Tools\ProjectGen\x86\ and run ProjectGen.exe
Select ShapeAppCSharp from the dropdown at the bottom and fill every other box with “ShapeAppCSharp” (with the exception of the icon field, which we will leave blank).Click “Next”.
On the next page, Click the “…” button and navigate to the C:\ShapeAppSamples\ShapeAppCSharp\ShapeAppCSharpProxy\bin\Debug directory and select ShapeAppCSharpProxy.dll
Sigh with remorse at the message you see, as you have now followed the directions in the MSDN articles verbatim, but to no avail.
Am I missing anything?
The installer for ShapeAppAdvancedCSharp works fine, so for the time being I can still get a feel for how the thing works, but I'd like to step through the whole process myself to get a feel for how the migration process would be for one
of my own applications.
(if the link at the top doesn't work, the SDK is at http://www.microsoft.com/downloads/details.aspx?FamilyId=7C2EA8AE-E051-449A-9051-3A351BF27B7F&displaylang=en )
Unfortunately, you cannot create a valid proxy through post build events alone. You must edit the descriptor file output by proxygen to designate an add-in entry point. Then run the updated descriptor file through proxygen creating the proxy.cs file.
Now when you use ProjectGen and select the proxy project, an add-in entry point will be available.
If you would like more information on VSTA, or have any questions, please check out our blogs and forums at
http://www.summsoft.com- we're here to help.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.