2 Replies Last post: May 16, 2013 6:29 PM by Robert Sirre  
Robert Sirre Newbie 2 posts since
Jan 11, 2013
Currently Being Moderated

Jan 11, 2013 8:42 PM

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?

Alex Berezoutsky JetBrains 469 posts since
Feb 18, 2011
Currently Being Moderated
Jan 14, 2013 1:57 PM in response to: Robert Sirre
Re: PostSharp compilation check causes Resharper Solution errors to be detected

Hello Robert,

 

Could you please provide a screenshot with this error message?

 

Thanks.

More Like This

  • Retrieving data ...