private string ReadFile(string fileName)
{
if (fileName.IndexOf("://") < 0)
{
fileName = fileName.StartsWith("~/", StringComparison.OrdinalIgnoreCase) ? fileName : PathHelper.CombinePath(WebAssetDefaultSettings.StyleSheetFilesPath, fileName);
}
if (!fileName.StartsWith("~"))
{
fileName = string.Format("~/Content/{0}", fileName);
}
if (!pathProvider.FileExists(fileName))
{
throw new FileNotFoundException(Resources.TextResource.SpecifiedFileDoesNotExist.FormatWith(fileName));
}
return pathProvider.ReadAllText(fileName);
}