dsplaisted / strongnamer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

project is not built with StrongNamer 0.2.5

oleksabor opened this issue · comments

Project has stopped to built after StrongNamer package had been added

There is the reference to the unsigned package in the csproj file like

    <Reference Include="ReasonParser, Version=0.3.1.0, Culture=neutral, processorArchitecture=MSIL">
      <HintPath>..\packages\ReasonParser.0.3.1\lib\net45\ReasonParser.dll</HintPath>
      <Private>True</Private>
    </Reference>

it looks like this assembly was signed and compiler are referencing the correct one dll

1>  C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /platform:x86 /errorreport:prompt /warn:4 /define:TRACE;DEBUG;QUIT_WITH_CLIENT;ARAKS_FAKE;DebugEx /main:Service.Program /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\work\main\Service\obj\Debug\SignedAssemblies\ReasonParser.dll

(I've removed all extra /references besides the SignedAssemblies)

However compile error is raised:

1>C:\work\main\Service\Schedule\ScheduleHandlers.cs(855,16,855,35): error CS0012: The type 'MapperResult' is defined in an assembly that is not referenced. You must add a reference to assembly 'ReasonParser, Version=0.3.1.0, Culture=neutral, PublicKeyToken=null'.

C:\work\main\Service\obj\Debug\SignedAssemblies\ReasonParser.dll is signed (I've checked with ILSpy)

Build error is fixed if I remove the StrongNamer package from the project.
The project has old net4 format and the target framework is net48