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.
#if !POSTSHARP
#error PostSharp is not introduced in the build process. If NuGet just restored the PostSharp package, you need to rebuild the solution.
#endif
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?
Please sign in to leave a comment.
Hello Robert,
Could you please provide a screenshot with this error message?
Thanks.
Same issue here, think it is the POSTSHARP compile constant that is not being added to the Resharper compiler
