Cilador.Fody.Core.WeavingContextAssemblyResolver.WeavingContextAssemblyResolver C# (CSharp) Метод

WeavingContextAssemblyResolver() публичный Метод

Creates a new WeavingContextAssemblyResolver
public WeavingContextAssemblyResolver ( IWeavingContext weavingContext ) : System
weavingContext IWeavingContext Weaving context to pull path data from
Результат System
        public WeavingContextAssemblyResolver(IWeavingContext weavingContext)
        {
            Contract.Requires(weavingContext != null);

            Contract.Assert(weavingContext.DefineConstants != null);
            Contract.Assert(Directory.Exists(weavingContext.ProjectDirectoryPath));
            Contract.Assert(Directory.Exists(weavingContext.SolutionDirectoryPath));

            // configuration specific path
            var projectRelativePath = Path.Combine("bin", weavingContext.DefineConstants.Contains("DEBUG") ? "Debug" : "Release");
            this.AddSearchDirectory(Path.Combine(weavingContext.ProjectDirectoryPath, projectRelativePath));

            // simple bin path, e.g. for asp.net
            this.AddSearchDirectory(Path.Combine(weavingContext.ProjectDirectoryPath, "bin"));

            // solution tools path for files created not normally available to the weave target assembly
            this.AddSearchDirectory(Path.Combine(weavingContext.SolutionDirectoryPath, "Tools"));
        }
WeavingContextAssemblyResolver