Hi
I created a GAT packageand was using the "Register Guidance Package" option to test my GAT package. Everything worked fine until I decided to build and testthe MSI for the GAT package.
I installed the MSI and tested my GAT package in a new VS instance and this worked fine.
I then un-installed the MSI and the GAT package wasno longer available from VS, so that also worked fine.
The problem occurs when I return to the GAT project and try to use the "Register Guidance Package" option again. I get the following "Recipe Framework Error" window with the error message:
"EnvDTE.Project, EnvDTE"
The stack trace is:
"System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE.
at Microsoft.Practices.Common.Services.TypeResolutionService.GetAssembly(AssemblyName assemblyName, Boolean throwOnError)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
--- End of inner exception stack trace ---
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.AliasResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError)
at Microsoft.Practices.RecipeFramework.GuidancePackage.EnsureInitializeMetadataForCurrentRecipe()
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()"
When I look at my "Guidance Package Developement" section in the output window, it seems it is the Register recipe that is failing:
Output window created.
Information: 0 : Starting execution of recipe Register.
Information: 0 : No previously saved state found.
Information: 0 : ------------------------------------------------------------------------------------------------------------------------------------------------------
(*) Error: 0 : System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE.
and the rest of the stack trace is as above.
I've tried repairing both the "Guidance Automation Extensions" and "Guidance Automation Toolkit for Visual Studio 2005", but this had no effect.
EnvDTE is present in my GAC and in C:\program files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies
Has anyone seen this scenario before, or have any ideas how to get "Register Guidance Package" working again?
Thanks!