DevTreks.Data/Helpers/AppSettings.cs
///<summary>
/// Builds a package path to resources
/// </summary>
/// <param name="endPath">the remaining path to the stylesheet</param>
Builds a package path to resources
Builds a package path to resources
public static string GetPackageFullPath(this ContentURI uri, string rootDirectory,
            string resourceSubFolderName, string resourceFile)
        {
            string sPackageFullPath = string.Format("{0}/{1}/{2}",
                rootDirectory,
                resourceSubFolderName, resourceFile);
            if (Path.IsPathRooted(sPackageFullPath))
            {
                sPackageFullPath
                    = sPackageFullPath.Replace(GeneralHelpers.WEBFILE_PATH_DELIMITER,
                    GeneralHelpers.FILE_PATH_DELIMITER);
            }
            else
            {
                sPackageFullPath
                    = sPackageFullPath.Replace(GeneralHelpers.FILE_PATH_DELIMITER,
                    GeneralHelpers.WEBFILE_PATH_DELIMITER);
            }
            return sPackageFullPath;
        }
public static string GetPackageFullPath ( this ContentURI uri , string rootDirectory , string resourceSubFolderName , string resourceFile ) { string sPackageFullPath = string . Format ( " " , rootDirectory , resourceSubFolderName , resourceFile ) ; if ( Path . IsPathRooted ( sPackageFullPath ) ) { sPackageFullPath = sPackageFullPath . Replace ( GeneralHelpers . WEBFILE_PATH_DELIMITER , GeneralHelpers . FILE_PATH_DELIMITER ) ; } else { sPackageFullPath = sPackageFullPath . Replace ( GeneralHelpers . FILE_PATH_DELIMITER , GeneralHelpers . WEBFILE_PATH_DELIMITER ) ; } return sPackageFullPath ; }
Builds a package path to resources
Builds a package path to resources
ContentURI
this
rootDirectory
string
resourceSubFolderName
string
resourceFile
string
endPath
the remaining path to the stylesheet
the remaining path to the stylesheet