Skip to content

Commit

Permalink
fixed #170
Browse files Browse the repository at this point in the history
  • Loading branch information
pamidur committed Jan 21, 2022
1 parent aa979ad commit 0223d6b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion external/FluentIL
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ private void MoveBody(MethodDefinition from, MethodDefinition to)
to.DebugInformation.CustomDebugInformations.Add(cdi);
}

//from.DebugInformation.SequencePoints.Clear();
//from.DebugInformation.Scope = null;

var to_vars = to.Body.Variables;
foreach (var var in from.Body.Variables)
to_vars.Add(new VariableDefinition(to.Module.ImportReference(var.VariableType)));
Expand Down
2 changes: 1 addition & 1 deletion src/AspectInjector.Core/Services/InjectionReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected virtual IEnumerable<InjectionDefinition> ExtractInterfaceInjections(IC
var injectionAttributes = FindInjections(interfaceDef);
var parsedList = ParseInjectionAttributes(injectionAttributes, interfaceDef);

return parsedList.SelectMany(parsed => FindApplicableMembers(target, parsed, null)); //todo: figure if we need fake metadata attribute here
return parsedList.SelectMany(parsed => FindApplicableMembers(target, parsed, null));
}


Expand Down
4 changes: 2 additions & 2 deletions src/AspectInjector/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ private static void ShowVerboseHeader()
{
var assembly = Assembly.GetExecutingAssembly();
Console.WriteLine($"version: {assembly.GetCustomAttribute<AssemblyProductAttribute>().Product} {assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion}");
Console.WriteLine($"runtime: {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
Console.WriteLine($"os: {System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier}");
Console.WriteLine($"framework: {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
Console.WriteLine($"runtime: {System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier}");
Console.WriteLine($"visit: https://github.com/pamidur/aspect-injector");
_headerPrinted = true;
}
Expand Down
18 changes: 18 additions & 0 deletions tests/AspectInjector.Tests.Integrity/PDBTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AspectInjector.Tests.Integrity
{
internal class PDBTest
{

public void TestPDB()
{
// TODO ::
}

}
}

0 comments on commit 0223d6b

Please sign in to comment.