/// <summary> /// Creates a new CreateOpenRiaClientFilesTask instance to use to generate code /// using the TestWap project. /// </summary> /// <param name="relativeTestDir"></param> /// <returns>A new task instance that can be invoked to do code gen</returns> public static CreateOpenRiaClientFilesTask CreateOpenRiaClientFilesTaskInstanceForWAP(string relativeTestDir) { string deploymentDir = Path.GetDirectoryName(typeof(CodeGenHelper).Assembly.Location); string projectPath = null; string outputPath = null; TestHelper.GetProjectPaths(relativeTestDir, out projectPath, out outputPath); Assert.IsTrue(File.Exists(projectPath), "Could not locate " + projectPath + " necessary for test."); string serverProjectPath = CodeGenHelper.ServerWapProjectPath(projectPath); string clientProjectPath = CodeGenHelper.ClientClassLibProjectPath(projectPath); return(CodeGenHelper.CreateOpenRiaClientFilesTaskInstance(serverProjectPath, clientProjectPath, false)); }