Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

project is not built with StrongNamer 0.2.5 #49

Open
oleksabor opened this issue Mar 4, 2020 · 0 comments
Open

project is not built with StrongNamer 0.2.5 #49

oleksabor opened this issue Mar 4, 2020 · 0 comments

Comments

@oleksabor
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant