Writing IL code in Rider

Hello!

Using Rider to write IL code and than compile it with ilasm.exe I notice that Rider IDE for somewhat reason thinks that tag 'aggressiveinlining' is an error, but gives me no description why, just ':20' (or any other number of the line where this so called 'error' presents)

Through this code can be compiled as well with ilasm and gives me the result I expected, I have no idea how can I switch this 'error' off because its annoying me :(

1
3 comments
Hi! 
Could you please provide some code/project sample? Thanks!
1

Hi, Alexandra! Yes, of course. Below is the example.

As you can see, Rider shows me here an error here: 

I know that an example code is literally holy crap, but that's not an issue here. When I compile it with ilasm.exe, I get normal output I expected, with the Aggressive Inlining attribute on it:

Behavior is the same for any project I use. It just spams me with errors on aggressiveinlining directive while I can easily compile it into .dll

Also I cannot implement unmanaged restriction using modreq and param type combination, but I guess it is a problem of Microsoft's ilasm.exe utility, not of Rider by itself.

I think, it would be great if there were any way to auto-complete and compile IL-code by Rider itself :) PLSSSSSSSS

0

Hello Spiral Black,

I was able to reproduce similar behavior with red code on the aggressiveinlining attribute. I've reported this to our tracker as RIDER-93794 False positive red code in IL code files.

think, it would be great if there were any way to auto-complete and compile IL-code by Rider itself

Thank you for the suggestion. I have submitted a new feature request: RIDER-93795 Support code completion for IL code.

Please upvote the issues mentioned above to indicate your interest. You may also click Watch to subscribe to future status updates.

1

Please sign in to leave a comment.