DCSIMG
July 2008 - Posts - Gilad Lavian's Blog

Gilad Lavian's Blog

In Development

July 2008 - Posts

Build Error on empty lines in Post-build event command line

The following error message raised when trying to compile a Project with an empty line on the Post-build event command line:

ErrorOnEmptyLine

 

The empty line in the Post-build event command line:

ErrorOnEmptyLine2 

 

Resolving this problem is simply to delete the empty line in the Post-build event command line.

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:

  1. Go to the solution.sln file created by the GAT.
  2. In the solution.sln file, find this line: GlobalSection(ExtensibilityGlobals) = postSolution and copy the entire block.
  3. 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.