Archived Thread: 'Subsonic Addin in VS2008?'
-
Subsonic Addin in VS2008?Posted by Bunce on Wednesday, November 28, 2007Hi All. Just wondering if anyone's attemped using the Subsonic Add-In for VS with VS2008? Can we just re-install and it VS2008 will pick it up, or are we stuck using the manual method until its updated? Link to project site-> {url|http://www.codeplex.com/subsonictools} Cheers, Andrew
-
Reply: Subsonic Addin in VS2008?Posted by spookytooth on Wednesday, November 28, 2007Not yet - hoping that it will get updated though...
-
Reply: Subsonic Addin in VS2008?Posted by DevInstinct on Monday, December 03, 2007Hi, I'm managing the VS Add-In Project - won't be doing the VS2008 setup before january. If anyone with at least one CodePlex project experience want to join the SubSonic Tools for Visual Studio to do it, let me know (by e-mailing me) :-) Note: haven't tested the Add-in with VS2008 yet. Martin
-
Reply: Subsonic Addin in VS2008?Posted by jkealey on Monday, December 03, 2007I personally use sonic.exe as an external tool in vs.net 2008 at the moment. Might be sufficient for you too until the next release!
-
Re: Reply: Subsonic Addin in VS2008?Posted by aland on Tuesday, March 25, 2008
I tried using the add-in with Visual Studio 2008 and it doesn't appear in the add-in manager.
Had to use sonic.exe as an external tool instead.
-
Re: Reply: Subsonic Addin in VS2008?Posted by berni2802 on Friday, June 27, 2008
I had the same Problem. But here is the fix:
I found out how to run it in VS 2008:
just add :
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>9.0</Version>
</HostApplication>
to SubSonicAddIn.AddIn recompile project and copy SubSonicAddIn.AddIn to your Visual Studio Add-in folder
(this is usually MyDocuments\Visual Studio 2008\Addins). -
Re: Reply: Subsonic Addin in VS2008?Posted by dworthley on Friday, June 27, 2008
Thanks for posting this. When I tried this, at first it didn't work. Then I realized that I hadn't changed the references before re-compiling. I wrote a quick blog entry about the process here:
http://www.itcrossing.com/Blog/tabid/103/EntryId/242/Running-SubSonic-Tools-for-Visual-Studio-in-Visual-Studio-2008.aspx
-
Re: Reply: Subsonic Addin in VS2008?Posted by berni2802 on Saturday, June 28, 2008
Did you really need to change the references? I compiled it with VS2005 with CommandBar Version 8.0 and modified the setup to install it to VS2005 and VS2008 and in runs in both VS versions.
-
Re: Reply: Subsonic Addin in VS2008?Posted by dworthley on Saturday, June 28, 2008
Well, I tried changing just the SubSonicAddin.Addin file as you mentioned in your post and that didn't work. I then re-compiled the project as noted in my blog entry and that did work. I'm not sure what you mean when you say you modified the setup to install to VS2005 and VS2008. Are you referring to changing the SubSonicAddin.Addin file?
-
Re: Reply: Subsonic Addin in VS2008?Posted by berni2802 on Saturday, June 28, 2008
Here what I did (all in VS2005):SubSonicAddIn-Project: added
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>9.0</Version>
<HostApplication>to SubSonicAddIn.AddIn file.
SubSonicToolsSetup - Project:
Added AddIns Folder for VS2008 Default location [PersonalFolder]\Visual Studio 2008\Addins ( same files as in Addins Folder for VS2005)
AddInCustomAction Project:
AddInstaller.cs file:
added in the Install(IDictonary savedState) function
string addinTargetPath1 = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"Visual Studio 2008\Addins");
Copied completed try-catch-block after the catch and replaced addinTargetPath with addinTargetPath1. -
Re: Reply: Subsonic Addin in VS2008?Posted by dworthley on Saturday, June 28, 2008
Great! Thanks for posting this additional information. I updated my blog post to include the details you added along with some images to make it easy to follow these steps.
http://www.itcrossing.com/Blog/tabid/103/EntryId/242/Running-SubSonic-Tools-for-Visual-Studio-in-Visual-Studio-2008.aspx