>I created a Custom Template based on VB Web Application but how can I add
>the needed references in default.js?
Example in the OnFinish event handler:
AddExternalReference("System.EnterpriseServices");
AddExternalReference("Microsoft.ApplicationBlocks.Data");
Create the following function (I put in bottom of file):
function AddExternalReference(ReferenceName)
{
var ref;
ref = wizard.ProjectObject.Object.References.Item(ReferenceName);
if (!ref) {
wizard.ProjectObject.Object.References.Add(ReferenceName);
}
}
Hope this helps :)
Mythran