title: TeamCity C# compile error: Invalid expression term 'int'
body: <p>A project that compiles locally (targeting .NET Framework 4.6.1) fails on TeamCity with the following message:</p>
  
  <blockquote>
    <p>[CoreCompile] Csc [Csc] Using shared compilation with compiler from directory: C:\Program Files (x86)\MSBuild\14.0\bin</p>
    
    <p>[19:02:15][Csc]
    Services\MyFile.cs(20, 55): error CS1525: Invalid expression term
    'int'</p>
    
    <p>[19:02:15][Csc] Services\MyFile.cs(20, 59): error CS1003: Syntax
    error, ',' expected</p>
  </blockquote>
  
  <p>I also get a lot of these in the failed compile in red writing:</p>
  
  <blockquote>
    <p>[Step 5/9] The target "MvcBuildViews" listed in a BeforeTargets
    attribute at "C:\Program Files
    (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets
    (845,131)" does not exist in the project, and will be ignored.</p>
  </blockquote>