C# function error

Been trying to create a C# function using visual studio. Any function, just trying to get the feature working. Keep getting an error saying:

 "   There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\\\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.\tPLCnext"

any idea on what could be causing it?

https://imgur.com/k2tCY57