SmartClient: Changing the Projects File System Structure
When creating a new smart client project by GAT (Guidance Automation Toolkit) the projects structure hierarchy on the file system is also created by the GAT.
Suppose I move the projects to another location on the file system and to and include this projects in different solution, then, I try to add a new BusinessModule, I will get the following exception:
Microsoft.Practices.RecipeFramework.ValueProviderException: An exception occurred during the binding of reference or execution of recipe CreateBusinessModuleCS. Error was: An error happened while calling the value provider or evaluating the default value of argument ShellProject.
The SmartClient searches for the root ShellProject in the solution, but since I moved the SmartClient projects to another solution in a different folder on the file system, it couldn't find it.
To resolve this situation, take the following steps:
- Go to the solution.sln file created by the GAT.
- In the solution.sln file, find this line: GlobalSection(ExtensibilityGlobals) = postSolution and copy the entire block.
- Paste the copied clock to the current solution.sln where you just moved your SmartClient projects (Infrastructure.Interface, Infrastructure.Library, Shell...).
The entire block should look like this:
GlobalSection(ExtensibilityGlobals) = postSolution
RootNamespace = YourSmartClientSoulitionName
CommonProjectGuid = f8120216-d992-4073-98b1-1fb43a16e73d
ShellProjectGuid = cc5c6234-2ae4-4819-be7d-044e89968528
EndGlobalSection
Close and reopen the solution, try to add new BusinessModule.