POSTSHARP error: Unhandled exception (postsharp-x86.exe 6.0.25 release | .NET Framework 4.7.1): Unknown framework name: 'Silverlight,Version=v4.0'. See below for details.

matt.patrone's Avatar

matt.patrone

12 Aug, 2018 02:05 PM

Receiving this error in TeamCity. We are using .Net 4.5 in the project, and we are NOT using Silverlight. I HAD to install .Net 4.7 on the server because I received a Postsharp error requiring it the first time I built on there.

Open in IDE
POSTSHARP error: Unhandled exception (postsharp-x86.exe 6.0.25 release | .NET Framework 4.7.1): Unknown framework name: 'Silverlight,Version=v4.0'. See below for details.
POSTSHARP PostSharp.Sdk.AssertionFailedException: Unknown framework name: 'Silverlight,Version=v4.0'.
POSTSHARP at PostSharp.Sdk.Extensibility.Platforms.PlatformInfoFactory.^BHdIRPh+(FrameworkName _0, FrameworkName _1, AssemblyProcessorArchitecture _2) in ^vi02OIapLCdo:line 113
POSTSHARP at PostSharp.Sdk.Extensibility.Platforms.PlatformInfoFactory.GetPlatformInfo(FrameworkName frameworkName, FrameworkName platformName, AssemblyProcessorArchitecture processorArchitecture) in ^vi02OIapLCdo:line 40
POSTSHARP at PostSharp.Sdk.Extensibility.Project.^//rNX/V1EBh0(FrameworkName _0, ^vtXvLHes& _1) in ^wJ3oIHJDddm/:line 382
POSTSHARP at PostSharp.Sdk.Extensibility.Project.^sV1/ZPAQ() in ^wJ3oIHJDddm/:line 412
POSTSHARP at PostSharp.Sdk.Extensibility.Project.^pFnf8wEt(ProjectInvocationParameters _0) in ^wJ3oIHJDddm/:line 586
POSTSHARP at PostSharp.Sdk.Extensibility.Project.LoadProject(ProjectInvocationParameters projectInvocationParameters, Domain& domain) in ^wJ3oIHJDddm/:line 553
POSTSHARP at PostSharp.Hosting.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation) in D:\src\PostSharp-5\Core\PostSharp.Hosting\PostSharpObject.cs:line 260
POSTSHARP at PostSharp.Hosting.Program.ExecuteImpl() in D:\src\PostSharp-5\Core\PostSharp.Hosting\Program.cs:line 851

  1. 1 Posted by matt.patrone on 12 Aug, 2018 02:14 PM

    matt.patrone's Avatar

    Also wanted to note that I am using PostSharp 5.0.48.

  2. Support Staff 2 Posted by PostSharp Techn... on 13 Aug, 2018 12:39 PM

    PostSharp Technologies's Avatar

    Hello,

    According to the error message exception is thrown by PostSharp 6.0.25. Could you please check whether you have different projects referencing different PostSharp versions in your solution? We recommend to unify all projects to one PostSharp version in this case.

    The exception itself tells us that one of the referenced assemblies in your project must target 'Silverlight,Version=v4.0'. Could you please confirm whether this is true?

    In any case this is caused by a bug on our side. We have filed an internal issue (#16514) and we'll get back to you once the fix is released.

    -alex

  3. Support Staff 3 Posted by PostSharp Techn... on 22 Aug, 2018 10:57 AM

    PostSharp Technologies's Avatar

    Hello,

    We are going to close this request as there have not been any further updates. Please feel free to reopen the discussion if you need more help.

    Thanks,
    PostSharp Team

  4. PostSharp Technologies closed this discussion on 22 Aug, 2018 10:57 AM.

  5. PostSharp Technologies re-opened this discussion on 17 Sep, 2018 02:30 PM

  6. Support Staff 4 Posted by PostSharp Techn... on 17 Sep, 2018 02:30 PM

    PostSharp Technologies's Avatar

    Hello,

    the bug #16514 has been fixed in the current release of PostSharp 6.0.27 and 6.1.3-preview.

    Should you need further help with this issue, don't hesitate to re-open this discussion.

    Best regards,
    -tony

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