internal string GetReferenceAssemblyPath(string targetFramework) { var(tfi, version) = UniversalAssemblyResolver.ParseTargetFramework(targetFramework); string identifier, identifierExt; switch (tfi) { case TargetFrameworkIdentifier.NETCoreApp: identifier = "Microsoft.NETCore.App"; identifierExt = "netcoreapp" + version.Major + "." + version.Minor; break; case TargetFrameworkIdentifier.NETStandard: identifier = "NETStandard.Library"; identifierExt = "netstandard" + version.Major + "." + version.Minor; break; default: throw new NotSupportedException(); } return(Path.Combine(dotnetBasePath, "packs", identifier + ".Ref", version.ToString(), "ref", identifierExt)); }
/// <summary> /// For GAC assembly references, the WholeProjectDecompiler will omit the HintPath in the /// generated .csproj file. /// </summary> public virtual bool IsGacAssembly(IAssemblyReference reference) { return(UniversalAssemblyResolver.GetAssemblyInGac(reference) != null); }