Browse Source

don't write HintPath for GAC assembly

pull/2186/head
文煌 5 years ago committed by Siegfried Pammer
parent
commit
8152e40d5c
  1. 2
      ICSharpCode.Decompiler/CSharp/ProjectDecompiler/ProjectFileWriterSdkStyle.cs

2
ICSharpCode.Decompiler/CSharp/ProjectDecompiler/ProjectFileWriterSdkStyle.cs

@ -184,7 +184,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler @@ -184,7 +184,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
xml.WriteAttributeString("Include", reference.Name);
var asembly = project.AssemblyResolver.Resolve(reference);
if (asembly != null)
if (asembly != null && !project.AssemblyResolver.IsGacAssembly(reference))
{
xml.WriteElementString("HintPath", asembly.FileName);
}

Loading…
Cancel
Save