Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
donker committed Jan 16, 2018
1 parent 05a41f1 commit e150adf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ public static void WriteToDoc(this AssemblyNameReference dependency, ref XmlNode
{
var depNode = AddElement(ref doc, "dependency");
AddAttribute(ref depNode, "version", dependency.Version.ToString());
AddAttribute(ref depNode, "versionnorm", dependency.Version.ToVersionString());
depNode.InnerText = dependency.FullName;
}
#endregion
Expand Down
3 changes: 2 additions & 1 deletion Connect.AssemblyAnalyzer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>D:\Documents\WindowsPowerShell\DNN\</OutputPath>
<OutputPath>D:\Documents\WindowsPowerShell\DNN\analyze\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<DependsOnNETStandard>true</DependsOnNETStandard>
</PropertyGroup>

Expand Down
9 changes: 8 additions & 1 deletion Models/CecilClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ public CecilClass(AssemblyReader assemblyReader, TypeDefinition cClass)
pm.CodeBlocks.Add(cb);
}
}
pm.Decompiled = assemblyReader.Decompiler.DecompileAsString(p).ToDictionary();
try
{
pm.Decompiled = assemblyReader.Decompiler.DecompileAsString(p).ToDictionary();
}
catch
{
pm.Decompiled = "".ToDictionary();
}
pm.Declaration = pm.GetDeclaration();
pm = Common.ParseDeprecation(p, pm);
Properties.Add(pm);
Expand Down

0 comments on commit e150adf

Please sign in to comment.