Justcode not recognising MEF attributes

2 posts, 1 answers
  1. Phil
    Phil avatar
    23 posts
    Member since:
    Sep 2010

    Posted 05 Feb 2013 Link to this post

    Thanks for a very useful product but I have a little issue when using MEF Imports.

    If I have the following declaration JustCode flags up a number of warnings. None of which are correct.

            [Import(typeof(ISyncServerProviderFactory))]
            private ISyncServerProviderFactory serverProviderFactory;

            [Import(typeof(ISyncClientProviderFactory))]
            private ISyncClientProviderFactory clientProviderFactory;

            [Import(typeof(IDatabaseHelperFactory))]
            private IDatabaseHelperFactory dbHelper;

    Warnings:

       C#: Field 'serverProviderFactory' is never assigned
       C#: Field 'clientProviderFactory' is never assigned
       C#: Field 'dbHelper' is never assigned
       C#: Field 'serverProviderFactory' can be made readonly
       C#: Field 'clientProviderFactory' can be made readonly
       C#: Field 'dbHelper' can be made readonly
  2. Answer
    Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 06 Feb 2013 Link to this post

    Hello,

     Thanks for bringing this issue to our attention.
    I have made an item for it in our product backlog and we will do our best to fix it as soon as possible.
    I would suggest ignoring the warnings as a temporary solution.
    Thank you.

    Kind regards,
    Zdravko
    the Telerik team
    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
  3. DevCraft banner
Back to Top