I am making a custom timer job in VS 2012 that targets .Net Framework 4.5.
I am using namespace Microsoft.SharePoint and Microsoft.SharePoint.Security but problem is it is showing following error:
The type or namespace name 'Security' does not exist in the namespace 'Microsoft.SharePoint' (are you missing an assembly reference?)
Could it be because of .Net Framework 4.5 and that I have to target .Net Framework 3.5? But then this is another problem because even though .Net Framework 3.5.1 is installed (I can see it in Windows Features) but it is not available in VS 2012.
I have even reinstalled .Net 3.5.1 from Windows features but still can't see it in VS 2012.
How do I fix this issue?