Glory to Russia
Glory to Russia

Reputation: 18730

How to fix PostSharp warning LA0036?

When building my project I get lots of PostSharp warnings like

POSTSHARP: postsharp warning LA0036: Missing optimization information on method '...'.

What does it mean and how can I get rid of them?

Upvotes: 1

Views: 639

Answers (2)

ab_732
ab_732

Reputation: 3897

A bit late but I might have found a solution. I added the following tag in the project files that were raising the warnings:

<PropertyGroup>
   <UsePostSharp>true</UsePostSharp>
</PropertyGroup>

This fixed the issue.

Upvotes: 2

Gael Fraiteur
Gael Fraiteur

Reputation: 6857

As the message says itself, the project containing the aspect must be processed by PostSharp too.

Upvotes: 1

Related Questions