Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Swap to Cecil from NuGet.
Browse files Browse the repository at this point in the history
  • Loading branch information
Therzok committed Mar 14, 2017
1 parent a2b55de commit d4d11b3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
7 changes: 6 additions & 1 deletion ICSharpCode.NRefactory.Cecil/CecilLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ public override IUnresolvedAssembly LoadAssemblyFile(string fileName)
// used to prevent Cecil from loading referenced assemblies
sealed class DummyAssemblyResolver : IAssemblyResolver
{
public void Dispose ()
{
}

public AssemblyDefinition Resolve(AssemblyNameReference name)
{
return null;
Expand Down Expand Up @@ -915,7 +919,8 @@ void InitBaseTypes(TypeDefinition typeDefinition, IList<ITypeReference> baseType
baseTypes.Add(ReadTypeReference(typeDefinition.BaseType));
}
if (typeDefinition.HasInterfaces) {
foreach (TypeReference iface in typeDefinition.Interfaces) {
foreach (InterfaceImplementation ii in typeDefinition.Interfaces) {
var iface = ii.InterfaceType;
baseTypes.Add(ReadTypeReference(iface));
}
}
Expand Down
20 changes: 15 additions & 5 deletions ICSharpCode.NRefactory.Cecil/ICSharpCode.NRefactory.Cecil.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Mono.Cecil">
<HintPath>..\..\..\packages\Mono.Cecil.0.10.0-beta4\lib\net40\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb">
<HintPath>..\..\..\packages\Mono.Cecil.0.10.0-beta4\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb">
<HintPath>..\..\..\packages\Mono.Cecil.0.10.0-beta4\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Rocks">
<HintPath>..\..\..\packages\Mono.Cecil.0.10.0-beta4\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\ICSharpCode.NRefactory\Properties\GlobalAssemblyInfo.cs">
Expand All @@ -99,10 +111,8 @@
<Project>{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}</Project>
<Name>ICSharpCode.NRefactory</Name>
</ProjectReference>
<ProjectReference Include="..\..\cecil\Mono.Cecil.csproj">
<Project>{D68133BD-1E63-496E-9EDE-4FBDBF77B486}</Project>
<Name>Mono.Cecil</Name>
<Private>true</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions ICSharpCode.NRefactory.Cecil/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Mono.Cecil" version="0.10.0-beta4" targetFramework="net40" />
</packages>

0 comments on commit d4d11b3

Please sign in to comment.