Fix for build solution under mono

Mono compiler did not use argument attributes in partial methods without code
Add condition attribute for web project