Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Installing GAX breaks Orcas C# new project creation
 

Installing GAX breaks Orcas C# new project creation

I've reproduced this issue on three machines. The steps are:

1. Install Visual Studio 2008 (Orcas
Beta 2).
2. Install the July 2007 release of GAX.
3. Open Orcas and create a new Windows Forms C# project.

The status bar will say "New project creation failed" and no project will be created. Uninstalling GAX does not make new project creation work. Nor does repairing Orcas. Only uninstalling and reinstalling Orcas brings new project creation back.

Any idea on why this happens? Is there anything I should look for? I notice that if I condition the "Install" custom action in the GAX msi to not run, this problem doesn't happen, but then GAX doesn't work because the RecipeFramework assemblies aren't registered.
Whatwhatwhat  Monday, September 24, 2007 6:54 PM
That issue could be due to a certain assembly version conflicts, please post the following information

- In your devenv.config file you should have several binding redirects, check if you have these redirects:
Microsoft.VisualStudio.TemplateWizard
Microsoft.VisualStudio.Shell.Design
Microsoft.VisualStudio.TemplateWizardInterface (if it's B2, you shouldn't have this entry)

- Check which version of those assemblies you have installed @ VSInstalllDir\Common7\IDE\

jose.
Jose Escrich  Tuesday, September 25, 2007 1:42 AM
You should have the devenv.config file @ C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE and there you should have several binding redirects, including that two ones.
Jose Escrich  Tuesday, September 25, 2007 7:59 PM
That issue could be due to a certain assembly version conflicts, please post the following information

- In your devenv.config file you should have several binding redirects, check if you have these redirects:
Microsoft.VisualStudio.TemplateWizard
Microsoft.VisualStudio.Shell.Design
Microsoft.VisualStudio.TemplateWizardInterface (if it's B2, you shouldn't have this entry)

- Check which version of those assemblies you have installed @ VSInstalllDir\Common7\IDE\

jose.
Jose Escrich  Tuesday, September 25, 2007 1:42 AM
Whoa, I don't have a devenv.config file anywhere on the machine. Where should I create it and what should go in it? Is it simply an xml file that looks like this?

<dependentAssembly>

<assemblyIdentity name="Microsoft.VisualStudio.TemplateWizard" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

<bindingRedirect oldVersion="0.0.0.0-8.9.9.9" newVersion="9.0.0.0" />

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="Microsoft.VisualStudio.Shell.Design" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

<bindingRedirect oldVersion="0.0.0.0-8.9.9.9" newVersion="9.0.0.0" />

</dependentAssembly>


Thanks for replying!

Whatwhatwhat  Tuesday, September 25, 2007 7:22 PM
You should have the devenv.config file @ C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE and there you should have several binding redirects, including that two ones.
Jose Escrich  Tuesday, September 25, 2007 7:59 PM
Thanks for the insight!

It doesn't seem to matter whether or not those two redirects are there, but I noticed that the GAT setup added this redirect:

<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.TemplateWizardInterface" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.9.9.9" newVersion="9.0.0.0" />
</dependentAssembly>

When I take it out, new project creation works again. It doesn't seem to have any effect on my guidance packages. Any idea what it may affect?



Whatwhatwhat  Tuesday, September 25, 2007 9:05 PM

No, it should not affect any of your guidance packages. Those redirects are just to fix some assembly versions conflicts in Orcas B1 and B2.

jose.

Jose Escrich  Tuesday, September 25, 2007 9:14 PM

You can use google to search for other answers

Custom Search

More Threads

• Creating Data Repository classes.
• Command Bar to Bound recipe
• How do you enable delay signing on a web project programmatically?
• FileCodeModel null on none project file...
• i m a beginner for Visual studo 2008
• Guidance Package Manager fails to appear in visual studio 2008
• VS2008 Standard vs Professional
• T4 template in Isolated Shell
• Calling a recipe inside another recipe???
• How to get SysListView32 of hiding object with IAccessible?