[69708 Closed] Fail build on missing source file

Greetings,

in an Oxygene project (7.1.75.1557, VS2013, .NET 4.5), if a source file in the project is missing on disk, an error is logged when you build the project, but the build is still considered successful. I would prefer if this could be changed, so that the build fails in this case.

Use case: We have a NUnit test project. A developer added a new file with a new test class, checked in the changed project file, but forgot to check in the new source file. The automatic build+test process ran successfully, because the project compiled successfully despite the missing file, since NUnit just uses reflection to find any available test fixtures in the assembly. It was not immediately apparent that the new test was in fact not executed.

Steps to reproduce:

  1. Create a new Oxygene .NET console application
  2. Add a class file
  3. Build the project
  4. Use Windows Explorer or similar to delete the class .pas file from disk.
  5. Build the project in Visual Studio. The status bar says “Build succeeded” although an error is logged.
  6. When building from the command line, error E215 can be seen in the log, and the summary from MSBuild says 1 error, but the exit code is 0 (success).

Thanks in advance,
Robert
>"\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" MissingFile.oxygene

CoreCompile:
RemObjects Elements (RemObjects C# and Oxygene) Compiler for .NET, Cocoa and
Java - Version 7.1.75.1557
Copyright 2003-2014 RemObjects Software, LLC. All rights reserved.

MSBUILD : error E215: File "C:\Users\xyz\Documents\Visual Studio 2013\Projects\
MissingFile\MissingClass.pas" not found [C:\Users\xyz\Documents\Visual Studio 2
013\Projects\MissingFile\MissingFile.oxygene]
  Source file: C:\Users\xyz\Documents\Visual Studio 2013\Projects\MissingFile\P
  rogram.pas
...
  Entering phase "Done" (00:00:00.2085076)
CopyFilesToOutputDirectory:
  Copying file from "obj\Release\MissingFile.exe" to ".\bin\Release\MissingFile
  .exe".
  MissingFile -> C:\Users\xyz\Documents\Visual Studio 2013\Projects\MissingFile
  \bin\Release\MissingFile.exe
Done Building Project "C:\Users\xyz\Documents\Visual Studio 2013\Projects\Missi
ngFile\MissingFile.oxygene" (default targets).


Build succeeded.

"C:\Users\xyz\Documents\Visual Studio 2013\Projects\MissingFile\MissingFile.oxy
gene" (default target) (1) ->
(CoreCompile target) ->
  MSBUILD : error E215: File "C:\Users\xyz\Documents\Visual Studio 2013\Project
s\MissingFile\MissingClass.pas" not found [C:\Users\xyz\Documents\Visual Studio
 2013\Projects\MissingFile\MissingFile.oxygene]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.96

C:\Users\xyz\Documents\Visual Studio 2013\Projects\MissingFile>

Thanks, logged as bugs://69708: Need to fail build on missing source file

bugs://69708 got closed as fixed for release Bradbury Class