Closed Meigs2 closed 2 years ago
Hi, @Meigs2 , thank you for the report, I'll take a look asap
I've tried to debug this myself however I'm having issues getting to the seemingly suspect block of code with my VS setup, and the debugger launching many many times every time I build is rather annoying. Is there a way to speed this up/disable? Despite this, InjectionReader.FindInjections
doesn't seem to throw anywhere when I debug and try to build a test project in VB.
That would help a lot if you could debug it. I still cannot find time to write proper doc on how to, but in short:
<PropertyGroup>
<_ASI_Location>path to folder where debug version of aspectinjector.dll is located with trailing slash e.g. d:\ai\scr\AspectInjector\bin\netcoreapp2.1\Debug\</_ASI_Location>
<_ASI_Debug>true</_ASI_Debug>
</PropertyGroup>
I've finally gotten around to attempting to debug these issues, however it seems that I cant get attributes to attach when referencing the AspectInjector broker project, but will attach when using the nuget package. Do I need to target a dll directly to get AspectInjector to add aspects?
fixed in #2.7.3-pre1
I'm researching using aspect-injector in a large vb.net project, however attributes created in VB will not compile, but will in C# of the same project type.
Steps to reproduce:
C#:
VB.NET:
The C# project will compile, but the VB.NET one will not, with the following output: