Upgrading Repository Factory to run in VS2008
-
Thursday, May 29, 2008 8:28 PM
We are trying to upgrade the Repository factory from the P&P group to run in VS 2008. We have opened the source in VS2008 and with the Guidance Package Guidance enabled we can run the Register Guidance recipe and voila It works. We can open a new instance of VS 2008 and have the Repository factory guidance available, but we cannot get the installer to work. We have tried creating a dummy project and matching the set up projects this has only resulted in changing the 3 launch conditions for the registry to 9.0 instead of 8.0 e.g. Software\Microsoft\VisualStudio\9.0\InstalledProducts\RecipeManagerPackage I can see no other differences between setup projects. The InstallerClass.cs does not have additional code in it either. What are we missing?
When we run the installer it appears to put the package into the specified install directory, but the "C:\Documents and Settings\All Users\Application Data\Microsoft\Recipe Framework\RecipeFramework9.0.xml does not get updated. If I manually update the file with the installed location to the "Data Access Guidance Package.xml" file then it seems we are almost there. The package does not show up in the Guidance Package Manager Enable \ Disable dialog, but if I load a solution that was created using the version that was successfully registered through the Guidance Package recipes then the repository recipes are available. The Context menus on the Solution Explorer are also missing but we can run the recipes from the Guidance Package Manager.
It seems the last thing I need to do is get it to show up in the Enable / Disable Dialog and the Menu's. Can you advise on what is going wrong with the installer or how do we manually make it work post install?
Thanks
N Anderton
Answers
-
Thursday, June 05, 2008 5:51 AM
Hi,
To achieve that you must add/change some arguments in all the custom actions as follow:
/Hive=9.0 /Configuration="[TARGETDIR]MyGP.xml"
the argument that you have to change is /Hive=9.0 and also you can specify something like /Hive=9.0Exp /RANU in case that if you want to register the guidance package into the experimental hive and RANU mode. Note that changes applies just for the installer so, if you want to change the registration hive in design time, that's when you register a GP through Visual Studio, you have to add under the GuidancePackage element a HostData child element as follow:
<
HostData>
<RegistrationSettings>/Hive=9.0</RegistrationSettings>
</HostData>hth.
jose.
Jose Escrich - weblogs.asp.net/jescrich- Marked As Answer by N Anderton Thursday, June 05, 2008 8:57 PM
All Replies
-
Saturday, May 31, 2008 7:03 PMHi,
I am not sure why the installer is failing but did you modified the Package Guid (and maybe the name) in the guidance package manifest file? Things might get in the way with the "old" (VS2005) version of the Repository Factory that is installed on your box. Best is to make sure you unregister the 2005 version, update the manifest file (2008 version) and after that register it.
Edward -
Wednesday, June 04, 2008 10:30 PMI have tried a number of things including modifying the package guid, modifying the version number and package guid and modifying the version number package guid and name of the package. The update guid I left the same, for each test. I have also tried installing on a machine that has not previously had the package installed and the result is the same. The package is installed into the specified directory but the package is not available to be enabled through the guidance manager.
As one last clue to what is going wrong, I just noticed that my installer is still modifying the file "C:\Documents and Settings\All Users\Application Data\Microsoft\Recipe Framework\RecipeFramework8.0.xml" instead of the file"...\RecipeFramework9.0.xml" So if I could find where this is set perhaps it will fix other pieces as well.
N Anderton -
Thursday, June 05, 2008 5:51 AM
Hi,
To achieve that you must add/change some arguments in all the custom actions as follow:
/Hive=9.0 /Configuration="[TARGETDIR]MyGP.xml"
the argument that you have to change is /Hive=9.0 and also you can specify something like /Hive=9.0Exp /RANU in case that if you want to register the guidance package into the experimental hive and RANU mode. Note that changes applies just for the installer so, if you want to change the registration hive in design time, that's when you register a GP through Visual Studio, you have to add under the GuidancePackage element a HostData child element as follow:
<
HostData>
<RegistrationSettings>/Hive=9.0</RegistrationSettings>
</HostData>hth.
jose.
Jose Escrich - weblogs.asp.net/jescrich- Marked As Answer by N Anderton Thursday, June 05, 2008 8:57 PM
-
Thursday, June 05, 2008 8:57 PM
Thanks,
You are the Man! You have saved us from abandoning the factory as we move to VS2008. Probably saved a few others as well judging by the posts on codeplex that have gone unanswered.
Noel- Edited by N Anderton Thursday, June 05, 2008 8:58 PM spelling error
-
Sunday, July 27, 2008 11:24 PMHi Anderton,
I understand this might be cristal clear to you guys, but I have been having some trouble in trying to use the RF with VS2008. How could I do it? I have already done the following:- Downloaded the source code from Codeplex
- Openned up the DataAccess Guidance Package.sln from the source folder with the same name (DataAccess Guidance Package)
- Converted the solution
- Some troubles in the conversion
- The projects ValueProviderTests and the project DataAccessGuidancePackageTests could not be converted. Don't ask me why :-)
- The reference in file RepositoryFactorySource\Data Access Guidance Package\Data Access Guidance Package\CustomPages\SPTablesSelectorCP.cs for the CustomWizardPage (whose definition supposedly should be in Microsoft.Practices.WizardFramework.dll) isn't working. No matter if I try to update the reference, it simply won't work.
- Can't build it.
Thank you guys a lot. I understande you take your free time to answer our questions (both here and on Codeplex)
Cheers,
Self-development -
Friday, April 17, 2009 6:22 PMhi -
i have the same issue but its the first time to use Repository factory
could u please provide me with the steps to change the < HostData > and
where i can find this line
thanks.
ledo Moon -
Saturday, April 18, 2009 9:54 PM
http://www.codeplex.com/RepositoryFactory/Release/ProjectReleases.aspx?ReleaseId=15058i found on codeplex this new build working with 2008
Build 18936
Jul 5 2008
Waleed Mohamed

