This project is read-only.

CompositeWebClientAutomation Bundle: Create Web Client Solution (C#) recipe fails on a box without VB

When you try to execute the Create Web Client solution (C#) recipe of the Guidance Package shipped in the CompositeWebClientAutomation 2007.12.4.3 bundle on a machine without VB.Net installed, you will get the following exception:
exception.png
Follow these steps to fix the issue:
  • 1. Install the CompositeWebClientAutomation-2007.12.4.3.exe.
  • 2. Open the WebClientFactoryGuidancePackage solution from .\ Guidance Packages\WebClientFactory\ folder.
  • 3. Open the WebClientFactoryPackage.xml file inside the WebClientFactoryPackage project, and comment the WCSF VB Recipes.
<!--WCSF VB Recipes-->
<!--
<xi:include href="Recipes/VB/CreateWebClientFactorySolution.xml"/>
<xi:include href="Recipes/VB/CreateWebClientFactorySolutionWAP.xml"/>
<xi:include href="Recipes/VB/CreateWebClientFactoryModule.xml"/>
<xi:include href="Recipes/VB/CreateWebClientFactoryFoundationalModule.xml"/>
<xi:include href="Recipes/VB/CreateWebClientFactoryView.xml"/>
<xi:include href="Recipes/VB/CreateWebClientFactoryUserControlView.xml"/>
<xi:include href="Recipes/VB/CreateWebClientFactoryMasterView.xml"/>
--> 
  • 4. Open the Bindings.xml file located under the Recipes folder, and comment out all the actions that create references for VB templates.
<!--
<Action Name="CreateBusinessModuleTemplateRefVB" Type="RefCreator" AssetName="Projects\Module.VB\BusinessModule.vstemplate" ReferenceType="Microsoft.Practices.WebClientFactory.References.ModuleTemplateReference, Microsoft.Practices.WebClientFactory.GuidancePackage" />
<Action Name="CreateFoundationalModuleTemplateRefVB" Type="RefCreator" AssetName="Projects\Module.VB\FoundationalModule.vstemplate" ReferenceType="Microsoft.Practices.WebClientFactory.References.ModuleTemplateReference, Microsoft.Practices.WebClientFactory.GuidancePackage" />
<Action Name="CreateViewRefVB" Type="RefCreator" AssetName="CreateViewVB" ReferenceType="Microsoft.Practices.WebClientFactory.References.WcsfWebProjectItemOrProjectReferenceVB, Microsoft.Practices.WebClientFactory.GuidancePackage" IsEnabledForProperty="IsWebProject"/>
<Action Name="CreateUserControlViewRefVB" Type="RefCreator" AssetName="CreateUserControlViewVB" ReferenceType="Microsoft.Practices.WebClientFactory.References.WcsfWebProjectItemOrProjectReferenceVB, Microsoft.Practices.WebClientFactory.GuidancePackage" IsEnabledForProperty="IsWebProject"/>
<Action Name="CreateMasterViewRefVB" Type="RefCreator" AssetName="CreateMasterViewVB" ReferenceType="Microsoft.Practices.WebClientFactory.References.WcsfWebProjectItemOrProjectReferenceVB, Microsoft.Practices.WebClientFactory.GuidancePackage" IsEnabledForProperty="IsWebProject"/>
--> 
  • 5. Exclude all the VSTemplates for Visual Basic from the Guidance Package from the WebClientFactoryPackage project in the Solution Explorer, by right clicking on the folders and select “Exclude from project”.
  • 6. Build the WebClientFactoryPackage solution.
  • 7. Register the Guidance Package by right clicking on the WebClientFactoryPackage project and selecting “Register Guidance Package”. The Pre-requisite to Register Guidance Packages is to install the latest version of Guidance Automation Toolkit.

Last edited Aug 1, 2008 at 8:42 PM by mconverti, version 5

Comments

No comments yet.