Mark project as a DLL

Hi,

I have a solution with one project which is a Class Library (DLL).

Is there anyway I can tell resharper on this solution not to give me warnings on
Public Methods - method is never used,
Public Properties - Prpoerty can be made private

4 comments

I want to second this complaint, and make it more general.

I have had numerous complaints from developers, working with resharper 4.5 so far, that it "messes up" public methods in this way.

We produce software in layers, in the same way as Microsoft produces .net, and people make applications for it.

There is no requirement that a framework layer uses every public method is exposes.

Because of this check, some developers have inadvertently changed scope of public items.

When others then try to install the framework, their software does not compile, because public methods have gone away.

Within the framework code, we have some demo applications. I think every method used by the demo applications is seen as "used", but methods not called within the same solution are flagged as "unused".

In general, there is an incorrect assumption that a software product exists as a single solution.




0

The same applies to public methods that are used through reflection too.

0

Hello,

The same applies to public methods that are used through reflection
too.


For these, the UsedImplicitlyAttribiute is intended.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.