System.Reflection.Assembly.GetAssemblyFilePath()

Here are the examples of the csharp api System.Reflection.Assembly.GetAssemblyFilePath() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : AssemblyUtilities.cs
with MIT License
from BrunoS3D

public static string GetreplacedemblyDirectory(this replacedembly replacedembly)
        {
            if (replacedembly == null) throw new ArgumentNullException("replacedembly");

            var path = replacedembly.GetreplacedemblyFilePath();
            if (path == null)
            {
                return null;
            }

            try
            {
                return Path.GetDirectoryName(path);
            }
            catch
            {
                return null;
            }
        }