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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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