6.0.11 and 6.0.12: Compilation failure using Threading in .NET Standard 2.0 project

avatar's Avatar

avatar

10 Jun, 2018 04:58 AM

As soon as you have a class that has a threading model, compilation fails with the following error:

0>Executing "dotnet.exe" C:\ProgramData\PostSharp\6.0.12\bin.Release\netcoreapp2.0\PostSharp.Compiler.Hosting.CommandLine.dll obj\Debug\netstandard2.0\Before-PostSharp\DynamicDeserialization.dll C:\Users\avatar\Source\Repos\DynamicDeserialization\obj\Debug\netstandard2.0\PostSharp\postsharp.config /config C:\ProgramData\PostSharp\6.0.12\bin.Release\netcoreapp2.0\PostSharp.Compiler.Hosting.CommandLine.dll.config /NoLogo /InstallVsx /cancel:Local\postsharp-cancel-0855663f-d030-4da7-8dc6-89ea4b50bdce
0>C:\Users\avatar\Source\Repos\DynamicDeserialization\DynamicDeserialization.csproj(0,0): Error PS0264: Could not load type 'PostSharp.Patterns.DynamicAdvising.IDeserializationCallback' from assembly 'PostSharp.Patterns.Common, Version=6.0.12.0, Culture=neutral, PublicKeyToken=e7f631e6ce13f078'. Build your project with detailed verbosity to see the assembly loading log.
0>C:\Users\avatar\Source\Repos\DynamicDeserialization\DynamicDeserialization.csproj : verbose PS0265: Detailed log for the previous error:
0>C:\Users\avatar\Source\Repos\DynamicDeserialization\DynamicDeserialization.csproj : verbose PS0265: LOG: Loading type PostSharp.Patterns.Model.AggregatableAttribute from assembly PostSharp.Patterns.Aggregation, Version=6.0.12.0, Culture=neutral, PublicKeyToken=e7f631e6ce13f078.
0>C:\Users\avatar\Source\Repos\DynamicDeserialization\DynamicDeserialization.csproj : verbose PS0265: LOG:   AssemblyLoadException: Could not load type 'PostSharp.Patterns.DynamicAdvising.IDeserializationCallback' from assembly 'PostSharp.Patterns.Common, Version=6.0.12.0, Culture=neutral, PublicKeyToken=e7f631e6ce13f078'.
0>C:\Users\avatar\Source\Repos\DynamicDeserialization\DynamicDeserialization.csproj : verbose PS0265: .
0>C:\Users\avatar\Source\Repos\DynamicDeserialization\DynamicDeserialization.csproj : info : PostSharp 6.0.12 [PostSharp.Compiler.Hosting.CommandLine.dll 6.0.12 release | .NET Core 2.0.7] complete -- 1 errors, 0 warnings, processed in 5536 ms
0>The process dotnet.exe exited with code 11.

Reproduction project enclosed.

Thanks,

Alistair

  1. Support Staff 1 Posted by PostSharp Techn... on 11 Jun, 2018 12:02 PM

    PostSharp Technologies's Avatar

    Hello,

    thanks for reporting the issue. This is a packaging bug and we will be working on a fix.

    (internal issue #16159)

    Best regards,
    Daniel

  2. Support Staff 2 Posted by PostSharp Techn... on 15 Jun, 2018 01:25 PM

    PostSharp Technologies's Avatar

    Hello,

    we have release a fix of this bug in PostSharp 6.0.13-rc.

    Best regards,
    Daniel

  3. Support Staff 3 Posted by PostSharp Techn... on 15 Jun, 2018 01:26 PM

    PostSharp Technologies's Avatar

    Hello,

    We are going to close this request as we believe it was solved. Please feel free to reopen the discussion if you need more help.

    Best regards,
    Daniel

  4. PostSharp Technologies closed this discussion on 15 Jun, 2018 01:26 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac