|
Hi,
I am developing a DSL Diagram, and need to use it integrated with GAX.
I need to use the DSL Diagram as input to T4 template, and with the contextual functionality of GAX, generate code.
But I am having problems with it, because DSL runs inside the Experimental Hive, and GAX not.
I am using as guide the following link: http://msdn.microsoft.com/en-us/library/aa905334.aspx In the section: Appendix A: Configuring Concurrent Development of GAX and DSL Packages
In my case, I am using VS2008, and VS2008 SDK 1.1. And the last version of GAX/GAT.
I follow the guide step, but I get the error: "Failed to retrieve paths under VSTemplate for the specified registry hive." The error is given in the DslPackage project.
Someone knows, what can be happening ?
thanks greetings
Leandro Tuttini | | Leandro Tuttini Thursday, January 08, 2009 11:58 AM | Hi Leandro,
you can register a guidance package under the experimental hive, check this out
hth jose.
Jose Escrich - weblogs.asp.net/jescrich - Proposed As Answer byJose Escrich Monday, January 12, 2009 3:10 PM
- Marked As Answer byLeandro Tuttini Tuesday, January 13, 2009 5:58 PM
-
| | Jose Escrich Monday, January 12, 2009 3:07 PM | Hi Leandro,
you can register a guidance package under the experimental hive, check this out
hth jose.
Jose Escrich - weblogs.asp.net/jescrich - Proposed As Answer byJose Escrich Monday, January 12, 2009 3:10 PM
- Marked As Answer byLeandro Tuttini Tuesday, January 13, 2009 5:58 PM
-
| | Jose Escrich Monday, January 12, 2009 3:07 PM | Hi Jose,
thanks for you answer.
I follow the step in the blog, but I have problem when I execute the register operation. In my case I am usign VS2008, and VS2008 SDK 1.1
I don´t understand the last paragraph of the blog, when explain about the installutil.
I used the "Register Guidance Packege", can I use it ?, or I must use command line option.
I get the following message:
Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe Register. Error was: Action Register failed to execute: The specified '9.0Exp' registration setting is not valid. You can remove the reference to this recipe through the Guidance Package Manager. ---> System.Exception: The specified '9.0Exp' registration setting is not valid at Microsoft.Practices.RecipeFramework.MetaGuidancePackage.Registration.PackageRegistationAction.Execute() at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName, Dictionary`2 inputValues) at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName) at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionCoordinationService.Run(Dictionary`2 declaredActions, XmlElement coordinationData) at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution) --- End of inner exception stack trace --- at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex) at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution) at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend) at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments) at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference) at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute() at Microsoft.Practices.RecipeFramework.AssetReference.Execute() at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec() at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
I added the following lines:
<HostData> <RegistrationSettings>/hive=9.0Exp</RegistrationSettings> </HostData>
thanks
Leandro Tuttini | | Leandro Tuttini Monday, January 12, 2009 7:01 PM | Hi Jose,
I found a little more, and I can find the follow link:
http://social.microsoft.com/Forums/en-US/vsx/thread/2ebdbfd0-4b4a-442c-8f35-bc7434e9bfc3
I could see that lacked add the command /RANU
I added the command:
<HostData> <RegistrationSettings>/hive=9.0Exp /RANU</RegistrationSettings> </HostData>
and work perfect.
I understand that register GAX in experimental hive much more simple, but I don´t undestand because the first method doesn´t work. I tried to use DSL in the normal VS enviroment, but I get the error: "Failed to retrieve paths under VSTemplate for the specified registry hive"
thanks
Leandro Tuttini | | Leandro Tuttini Monday, January 12, 2009 8:25 PM | Hi Leandro,
since VS2008 when you use the experimental hive it implies that you will use the CURRENT_USER registry hive, that's because you should use the /RANU switch.
Regarding to use the DSL Tools under the experimental hive the idea is that you should design the DSL using the regular one an test it on a experimental one. Regarding the issues using DSL Tools the Vs Extensibility would be the better place to post your questions.
hth jose.
Jose Escrich - weblogs.asp.net/jescrich | | Jose Escrich Tuesday, January 13, 2009 5:21 PM | Hi, I can tell you that I can run GAX inside Experimental Hive, it works excellent. I updated the GAX with the last upgrade.
Guidance
Automation Extensions for Visual Studio 2008 and Visual Studio 2008 Service
Pack 1 Update (GAXP1409)
http://www.microsoft.com/downloads/details.aspx?familyid=E28205C6-BB07-401B-9A76-804784598BF0&displaylang=en
And then I restarted the Experimental hive enviroment: Programs -> Microsoft Visual Studio 2008 SDK -> Tools -> Reset the Microsoft Visual Studio 2008 SP1 Experimental hive thanks
Leandro Tuttini | | Leandro Tuttini Tuesday, January 13, 2009 5:57 PM |
|