Project reference issues

Answered

I'm having issues with a project ever since upgrading from ReSharper 9 to ReSharper 10.0.2.

ReSharper claims that there are errors in a couple of files because GemBox.Document is not referred to in their project, which it is. Building works fine and the solution runs, but ReSharper analysis shows errors and squiggly lines under all GemBox.Document references.

Other NuGet packages work fine in all projects, as this one did before upgrading.

Text export of the errors:

Solution CMS.sln

    Project CMS.Export
      CMS.Export\Word\Definitions\BaseModel.cs:24 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\Definitions\BaseModel.cs:24 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\Definitions\BaseModel.cs:28 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\Definitions\BaseModel.cs:48 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\Definitions\BaseModel.cs:50 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\Definitions\BaseModel.cs:53 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExport.cs:9 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExport.cs:26 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExport.cs:26 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExport.cs:31 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExport.cs:38 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExport.cs:40 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:29 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:33 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:33 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:34 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:36 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:39 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:41 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:46 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:46 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:48 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:50 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:52 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:54 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:59 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordExportDefinition.cs:63 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:12 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:16 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:16 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:28 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:46 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:48 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:54 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:102 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:104 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:109 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:110 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
      CMS.Export\Word\WordTemplate.cs:113 Module 'GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847' should be referenced
    
  

From packages.config:
...
  <package id="GemBox.Document" version="25.3.30.1043" targetFramework="net45" />
...

From csproj file:
...
    <Reference Include="GemBox.Document, Version=25.3.30.1043, Culture=neutral, PublicKeyToken=b1b72c69714d4847, processorArchitecture=MSIL">
      <HintPath>..\packages\GemBox.Document.25.3.30.1043\lib\net30\GemBox.Document.dll</HintPath>
      <Private>True</Private>
    </Reference>
...

1 comment
Comment actions Permalink

Hello Christopher,

According to the latest comment here https://youtrack.jetbrains.com/issue/RSRP-427743:
<<
the problem is related to the obfuscated GemBox.Document.dll assembly, which seems to be incorrectly read by ReSharper.
>>

So please follow https://youtrack.jetbrains.com/issue/RSRP-451320 ticket.

Thanks! 

0

Please sign in to leave a comment.