To fix this, explicitly specify the reference assembly that should be used by passing the '/reference' switch using the CodeAnalysisAdditionalOptions ...