You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
23 lines
699 B
C#
23 lines
699 B
C#
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace Tools.DotNETCommon
|
|
{
|
|
public static class AssemblyUtils
|
|
{
|
|
/// <summary>
|
|
/// Gets the original location (path and filename) of an assembly.
|
|
/// This method is using Assembly.CodeBase property to properly resolve original
|
|
/// assembly path in case shadow copying is enabled.
|
|
/// </summary>
|
|
/// <returns>Absolute path and filename to the assembly.</returns>
|
|
public static string GetOriginalLocation(this Assembly ThisAssembly)
|
|
{
|
|
return new Uri(ThisAssembly.CodeBase).LocalPath;
|
|
}
|
|
}
|
|
}
|