【C#】EXEが保存されているパスからの相対パスを絶対パスに変更

/// <summary>
/// EXE保存パスからの相対パスを絶対パスに変更
/// </summary>
/// <param name="relativePath">例.「Setting\Setting.xml」</param>
/// <returns>EXE保存パス+relativePath</returns>
public static string GetFullPath(string relativePath)
{
    //EXE保存パス取得
    string exePath = System.Reflection.Assembly.GetEntryAssembly().Location;

    //EXE保存パス+渡された相対パス
    return System.IO.Path.Combine(System.IO.Path.GetDirectoryName(exePath), relativePath);
}