Exemplo n.º 1
0
        private ProvisioningTemplateLocationInfo GetParentProvisioningTemplateInformation(string projectItemFullPath, string projectFolderPath, ProvisioningTemplateToolsConfiguration config)
        {
            Models.ProvisioningTemplateLocationInfo templateInfo = null;

            try
            {
                templateInfo = ProjectHelpers.GetParentProvisioningTemplateInformation(projectItemFullPath, projectFolderPath, config);
            }
            catch (Exception ex)
            {
                LogService.Exception("GetParentProvisioningTemplateInformation", ex);
            }

            if (templateInfo == null)
            {
                LogService.Warn("Cannot determine template for the supplied item: " + projectItemFullPath);
            }

            return(templateInfo);
        }