Following the advice got on another question of mine, I converted the code there quoted to be used with PostSharp:
Attribute:
[Serializable] public s
You do not need to execute the PostSharp command-line utility, but you need to install properly.
The easiest way is to install PostSharp using the installer.
Otherwise, you should edit your project file using a text editor as described in documentation.