PostSharp compilation check causes Resharper Solution errors to be detected

The latest version of PostSharp being distributed via NuGet place a compilation-checking file in a project, named 'RequiresPostSharp.cs' (or vb)

This file contains the following code, enforcing Postsharp not to be turned off for the compiler.

#error PostSharp is not introduced in the build process. If NuGet just restored the PostSharp package, you need to rebuild the solution.

Resharper detects this as a solution error, stating the error in the second line. The compiler runs normally though.

Any ideas on how to fix this?
Comment actions Permalink

Hello Robert,

Could you please provide a screenshot with this error message?


Comment actions Permalink

Same issue here, think it is the POSTSHARP compile constant that is not being added to the Resharper compiler


Please sign in to leave a comment.