Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Upgrading Repository Factory to run in VS2008
 

Upgrading Repository Factory to run in VS2008

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 ifI load a solutionthat 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

N Anderton  Thursday, May 29, 2008 8:28 PM
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 thatif 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 byN Anderton Thursday, June 05, 2008 8:57 PM
  •  
Jose Escrich  Thursday, June 05, 2008 5:51 AM
Hi,

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

Edward Bakker  Saturday, May 31, 2008 7:03 PM
I have tried a number of things including modifying the package guid, modifying theversion number and package guid and modifying theversion number package guid and name of thepackage. The update guid I left the same, for each test. I have also tried installing on a machinethat has not previously had the package installed and the result is the same.Thepackage 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
N Anderton  Wednesday, June 04, 2008 10:30 PM
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 thatif 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 byN Anderton Thursday, June 05, 2008 8:57 PM
  •  
Jose Escrich  Thursday, June 05, 2008 5:51 AM

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 byN Anderton Thursday, June 05, 2008 8:58 PMspelling error
  •  
N Anderton  Thursday, June 05, 2008 8:57 PM
Hi 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:
  1. Downloaded the source code from Codeplex
  2. Openned up the DataAccess Guidance Package.sln from the source folder with the same name (DataAccess Guidance Package)
  3. Converted the solution
    1. Some troubles in the conversion
      1. The projects ValueProviderTests and the project DataAccessGuidancePackageTests could not be converted. Don't ask me why :-)
      2. 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.
  4. Can't build it.
The 1 Million Dollar Question is: How did you make it work? Would you please place a step by step here?

Thank you guys a lot. I understande you take your free time to answer our questions (both here and on Codeplex)

Cheers,

Self-development
marcosaccioly  Sunday, July 27, 2008 11:24 PM
hi -
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
Waleed Mohamed  Friday, April 17, 2009 6:22 PM
i found on codeplex this new build working with 2008
Build 18936

Jul 5 2008
http://www.codeplex.com/RepositoryFactory/Release/ProjectReleases.aspx?ReleaseId=15058

Waleed Mohamed
Waleed Mohamed  Saturday, April 18, 2009 9:54 PM

You can use google to search for other answers

Custom Search

More Threads

• creating receipe using short cut
• Binding error (?) using Smart Client Software Factory
• Error installing Mobile Client Software Factory on Vista - Cannot Connect to IIS
• Examining the items in a solution
• Error while using Guidance package in Ent Lib 3.0 for Strong Naming DLLs
• Error install GAX
• Can't install GAT on VS2008
• June 2006 CTP and Hands On Lab
• Update guidance already installed
• Custom Directory Structure through GAT