Error in assemblyinfo.cs when the framework is changed

Answered Error in assemblyinfo.cs when the framework is changed

  • 2012년 8월 21일 화요일 오전 10:43
     
     

    Hi,

    I have an Office application which is building properly on .Net 4.0. I need to change it to .Net 3.5. Once I change it in the settings I am getting this error

    The type or namespace name 'SecurityRulesAttribute' does not exist in the namespace 'System.Security' (are you missing an assembly reference?)

    Do I have to refer a different System.Security assembly?

    Thanks

모든 응답

  • 2012년 8월 21일 화요일 오후 1:07
     
     답변됨
    Security, especially CAS, changed a lot between 3.5 and 4.0. Even more, from documentation page regarding this class we can see that it was introduced in 4.0. How did you manage to compile it against 3.5 framework?
  • 2012년 8월 22일 수요일 오전 6:12
     
     
    I removed the conflicting line and no errors now. Waiting for repercussions...