コード例 #1
0
        protected virtual string OnGetReferenceAssembliesFolder()
        {
            var fxDir = framework.Id.GetAssemblyDirectoryName();

            foreach (var rootDir in runtime.GetReferenceFrameworkDirectories())
            {
                var dir           = rootDir.Combine(fxDir);
                var frameworkList = dir.Combine("RedistList", "FrameworkList.xml");
                if (File.Exists(frameworkList))
                {
                    return(dir);
                }
            }
            return(null);
        }