1) Open the file %windir%/Microsoft.NET/Framework/v2.0.50727/Microsoft.CompactFramework.Common.Targets for editing.
2) Go to the line which reads:
Name="PlatformVerificationTask">
and change it to:
Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' != 'true'">