示例#1
0
        private ExtensionDescriptor GetExtensionDescriptor(string locationPath, string extensionId, string extensionType, string manifestPath, bool manifestIsOptional)
        {
            var manifestText = _clientFolder.ReadFile(manifestPath);

            if (manifestText == null)
            {
                if (manifestIsOptional)
                {
                    manifestText = string.Format("Id: {0}", extensionId);
                }
                else
                {
                    return(null);
                }
            }

            return(GetDescriptorForExtension(locationPath, extensionId, extensionType, manifestText));
        }
示例#2
0
        public PlacementFile Parse(string virtualPath)
        {
            var placementText = _webSiteFolder.ReadFile(virtualPath);

            return(ParseText(placementText));
        }