c# - Getting error "System.Runtime.Versioning.TargetFrameworkAttribute from assembly 'mscorlib, Version=2.0.0.0'" -


i new c#, need in debugging error, nothing on internet helpful.

i changed target framework .net 2 .net 4 related projects, after started getting error.

the error is:

''system.runtime.versioning.targetframeworkattribute' assembly 'mscorlib, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'.

i found targetframeworkattribute not available in mscorlib 2.0.0.0 available in mscorlib 4.0.0.0, don't know picking mscorlib of version 2.0.0.0 .

i found code causing problem, don't know here.

this.incallwaitpicturebox.image = ((system.drawing.image)resources.getobject("incallwaitpicturebox.image")));

system.componentmodel.componentresourcemanager resources system.windows.forms.picturebox presetupform.incallwaitpicturebox

i found func getobject() in mscorlib assembly.

plz give me pointers resolve error.

 solved same problem switching "<nostdlib>true</nostdlib>" "<nostdlib>false</nostdlib>" my_project.csproj file 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -