Compilation Error .net standar 2.0.3

nicolas's Avatar

nicolas

17 Jul, 2018 09:25 PM

Hello,
after add postsharp to a .net standar 2.0.3 project , when i compile , i have error

Gravité Code Description Projet Fichier Ligne État de la suppression
Erreur PS0099 Unhandled exception (PostSharp.Compiler.Hosting.CommandLine.dll 6.0.19 release | .NET Core 2.1.2): PostSharp.Sdk.AssertionFailedException: Exception of type 'PostSharp.Sdk.AssertionFailedException' was thrown. WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at PostSharp.Hosting.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation) in D:\src\PostSharp-5\Core\PostSharp.Hosting\PostSharpObject.cs:line 283. WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at PostSharp.Sdk.Binary.ModuleWriter.CreateSymbolWriter(String _0) in ^lKzgCo16HW7d:line 98 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at PostSharp.Sdk.Extensibility.Project.Execute() in ^wJ3oIHJDddm/:line 2388 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at PostSharp.Sdk.Extensibility.Project.ExecutePhase(String phase) in ^wJ3oIHJDddm/:line 2321 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at PostSharp.Sdk.Extensibility.Tasks.CompileTask.Execute() in ^G7HhZMnp2PTX:line 341 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at ^cyC/TYSlPGB/.^wvPm(^t9VuvqVboKU4 _0, ^RtksFin57NJ8 _1, ^8gP93Xsl\+Imn _2) in ^0aLE32Ok3Mhl:line 24 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at ^OKKFOvYOQFk6..ctor(^Pb/Gj0N91l9C pdbReader, ModuleWriter moduleWriter, String fileName) in ^/r3s8JW/gGu7:line 82 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at ^Pb/Gj0N91l9C.CreateWriter(ModuleWriter _0, String _1) in ^yV6zp6CIobBh:line 804 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1
Erreur PS0099 at ^XLVeHKzJ.^8KD6D2SV(String _0) in ^r90xUKKbB2LP:line 158 WebsocketVB C:\source\test-divers\web socket\WEBSOCKET-VB\WebsocketVB\WebsocketVB.vbproj 1

if i remove postsharp , it compile normaly .

Thank for you help.

  1. Support Staff 1 Posted by PostSharp Techn... on 18 Jul, 2018 12:13 PM

    PostSharp Technologies's Avatar

    Hello,

    this is internal error of PostSharp Portable PDB reader, could you please share with us content of obj directory of affected project? As a temporary workaround you should be able to switch your project to old PDB format (set Project Properties -> Build -> Advanced -> Debugging Information to Full).

    Thanks for reporting issue. Any reproduction or sharing the C# compiler output would help us immensely.

    (internal issue #16394)

    All the best,
    Daniel

  2. 2 Posted by nicolas on 18 Jul, 2018 01:23 PM

    nicolas's Avatar

    Hello,
    Thank you with old pdb it's working.
    I send you my obj folder when I have the crash

    Best regard

    Cordialement,
    Nicolas ESSADDAM

    --------------------------------------------------------------------------------------------------------------------------------------------------------------
           La théorie, c'est quand on sait tout et que rien ne fonctionne. La pratique, c'est quand tout fonctionne et que personne ne sait pourquoi. Si la pratique et la théorie sont réunies, rien ne fonctionne et on ne sait pas pourquoi.
           Un informaticien dois avoir un soupçon de théorie, un peu de pratique , pas trop de poisse et beaucoup de flemmardise.

  3. Support Staff 3 Posted by PostSharp Techn... on 20 Jul, 2018 08:16 AM

    PostSharp Technologies's Avatar

    Hello,

    we have identified the issue to be related to a combination of PortablePDB and Visual Basic. We will we working on a fix.

    (internal issue #16394)

    Best regards,
    Daniel

  4. Support Staff 4 Posted by PostSharp Techn... on 30 Jul, 2018 02:45 PM

    PostSharp Technologies's Avatar

    Hello,

    We're closing the ticket for now as the bug has been internally filed as issue #16394. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies

    Thanks,
    PostSharp Team

  5. PostSharp Technologies closed this discussion on 30 Jul, 2018 02:45 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