Beispiel #1
0
        IAssembly IAssemblyReference.Resolve(ITypeResolveContext context)
        {
            IProject p = this.ReferencedProject;

            if (p == null)
            {
                return(null);
            }
            var             snapshot = context.Compilation.SolutionSnapshot as ISolutionSnapshotWithProjectMapping;
            IProjectContent pc       = (snapshot != null) ? snapshot.GetProjectContent(p) : p.ProjectContent;

            return((pc != null) ? pc.Resolve(context) : null);
        }